# HG changeset patch # User nenolod # Date 1140656845 28800 # Node ID a019c0e28b28d72780a052d9e7fc719cb1338554 # Parent 0fd4f4a28ce147f7c8c1505719e1815c9b0ab0c4 [svn] If the makefile has a HEADERS variable, then install them to the INCLUDEDIR. diff -r 0fd4f4a28ce1 -r a019c0e28b28 mk/objective.mk --- a/mk/objective.mk Wed Feb 22 17:04:47 2006 -0800 +++ b/mk/objective.mk Wed Feb 22 17:07:25 2006 -0800 @@ -6,9 +6,11 @@ OBJECTIVE_LIBS_NOINST = none OBJECTIVE_BINS = none SUBDIRS = none +HEADERS = none + LIBDIR = $(libdir) BINDIR = $(bindir) - +INCLUDEDIR = $(includedir) CFLAGS += -DHAVE_CONFIG_H default: all @@ -29,6 +31,12 @@ $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ done; \ fi + @if test "$(HEADERS)" != "none"; then \ + for i in $(HEADERS); do \ + printf "%10s %-20s\n" INSTALL $$i; \ + $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(INCLUDEDIR)/$$i; \ + done; \ + fi @if test "$(OBJECTIVE_LIBS)" != "none"; then \ for i in $(OBJECTIVE_LIBS); do \ printf "%10s %-20s\n" INSTALL $$i; \ @@ -61,7 +69,7 @@ build: $(MAKE) build-prehook - @if test "$(SUBDIRS)" != "none"; then \ + +@if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ echo "[building subobjective: $$i]"; \ (cd $$i; $(MAKE); cd ..); \