ceckb

libcec to uinput key event mapper
git clone git://git.2f30.org/ceckb
Log | Files | Refs | README | LICENSE

commit 2c2fd5b7e44ce75b31e6152a5d19b07c7ee39fd0
parent 99e2c9004b9d97b6ffc72b1606f108324e9cc1ad
Author: lostd <lostd@2f30.org>
Date:   Tue, 20 Oct 2015 23:43:31 +0300

Fix config.h rule and add install targets

Diffstat:
MMakefile | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,3 +1,4 @@ +PREFIX = /usr/local #CPPFLAGS = -DDEBUG LDLIBS = -lcec OBJS = ceckb.o @@ -7,12 +8,17 @@ all: $(BIN) ceckb.o: config.h +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + clean: rm -f $(OBJS) $(BIN) -.PHONY: all clean - -.SUFFIXES: .def.h +config.h: + cp config.def.h $@ -.def.h.h: - cp $< $@ +.PHONY: all clean install uninstall