equal
deleted
inserted
replaced
1 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
1 # Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. |
2 # |
2 # |
3 # Permission is hereby granted, free of charge, to any person obtaining a |
3 # Permission is hereby granted, free of charge, to any person obtaining a |
4 # copy of this software and associated documentation files (the "Software"), |
4 # copy of this software and associated documentation files (the "Software"), |
5 # to deal in the Software without restriction, including without limitation |
5 # to deal in the Software without restriction, including without limitation |
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
24 OBJS = $(SRCS:.c=.o) |
24 OBJS = $(SRCS:.c=.o) |
25 |
25 |
26 kbd_mode: $(OBJS) |
26 kbd_mode: $(OBJS) |
27 $(LD) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) |
27 $(LD) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) |
28 |
28 |
29 install: kbd_mode |
29 install: kbd_mode kbd_mode.1 |
30 mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 |
30 mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 |
31 $(INSTALL) -m 0555 kbd_mode $(DESTDIR)$(PREFIX)/bin |
31 $(INSTALL) -m 0555 kbd_mode $(DESTDIR)$(PREFIX)/bin |
32 $(INSTALL) -m 0444 kbd_mode.1 $(DESTDIR)$(PREFIX)/share/man/man1 |
32 $(INSTALL) -m 0444 kbd_mode.1 $(DESTDIR)$(PREFIX)/share/man/man1 |