# HG changeset patch # User nenolod # Date 1141013648 28800 # Node ID cf7b5a288564d9058c217cf691cf2fad6f1238c3 # Parent 430419abf7238dd00e257292e3d4a0d6864af457 [svn] rule for installing data diff -r 430419abf723 -r cf7b5a288564 mk/objective.mk --- a/mk/objective.mk Sun Feb 26 20:09:32 2006 -0800 +++ b/mk/objective.mk Sun Feb 26 20:14:08 2006 -0800 @@ -5,6 +5,7 @@ OBJECTIVE_LIBS = none OBJECTIVE_LIBS_NOINST = none OBJECTIVE_BINS = none +OBJECTIVE_DATA = none SUBDIRS = none HEADERS = none @@ -53,6 +54,14 @@ $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ done; \ fi; + @if test "$(OBJECTIVE_DATA)" != "none"; then \ + for i in $(OBJECTIVE_DATA); do \ + source = `echo $$i | cut -d ":" -f1`; \ + destination = `echo $$i | cut -d ":" -f2`; \ + printf "%10s %-20s\n" INSTALL $$source; \ + $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ + done; \ + fi $(MAKE) install-posthook @echo "[all objectives installed]"