makefiles: support PREFIX and SYSCONFDIR

This commit is contained in:
Michael Stapelberg
2010-03-16 00:08:54 +01:00
parent 29c4ac9395
commit 1bce8f2104
4 changed files with 19 additions and 13 deletions

View File

@ -18,8 +18,8 @@ all: ${FILES}
install: all
echo "INSTALL"
$(INSTALL) -d -m 0755 $(DESTDIR)/usr/bin
$(INSTALL) -m 0755 i3-input $(DESTDIR)/usr/bin/
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0755 i3-input $(DESTDIR)$(PREFIX)/bin/
clean:
rm -f *.o