changeset 713:cf7b5a288564 trunk

[svn] rule for installing data
author nenolod
date Sun, 26 Feb 2006 20:14:08 -0800
parents 430419abf723
children 3c030d963be4
files mk/objective.mk
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]"