Rework Makefiles one more time.

- use printf to print commands rather than echo, which it may not have
  support for escape sequences (-e).
- Remove DESTDIR from SBINDIR, MANDIR, LIBDIR and INCLUDEDIR so that
  you can override it.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100124125958-8mscedj5ntf288jd
This commit is contained in:
Juan RP
2010-01-24 13:59:58 +01:00
parent f613e8e49d
commit a0b5e9e83a
5 changed files with 37 additions and 38 deletions

View File

@@ -7,12 +7,12 @@ all:
.PHONY: install
install:
install -d $(INCLUDEDIR)
install -m 644 $(INCS) $(INCLUDEDIR)
install -d $(DESTDIR)$(INCLUDEDIR)
install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
.PHONY: uninstall
uninstall:
-rm -f $(INCLUDEDIR)/$(INCS)
-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
.PHONY: clean
clean: