Revision
464
Author
wsiegrist@apple.com
Date
2009-01-26 16:26:58 -0800 (Mon, 26 Jan 2009)

Log Message

Allow for incremental generation of the prefixes target

Modified Paths

Diff

Modified: trunk/darwinbuild/Makefile (463 => 464)


--- trunk/darwinbuild/Makefile	2009-01-14 22:25:29 UTC (rev 463)
+++ trunk/darwinbuild/Makefile	2009-01-27 00:26:58 UTC (rev 464)
@@ -16,10 +16,11 @@
 manifest: manifest.c
 	cc $(CFLAGS) -Wall -Werror -o $(OBJROOT)/$@ -lcrypto $^
 
-prefixes:
-	@$(foreach SCRIPT,$(PrefixReplacements), \
-		$(SED) -e 's,%%PREFIX%%,$(PREFIX),' $(SCRIPT).in > $(SCRIPT) ;)
+prefixes: $(PrefixReplacements)
 
+$(PrefixReplacements): % : %.in
+	$(SED) -e 's,%%PREFIX%%,$(PREFIX),' $@.in > $@ ;			
+
 install: all
 	[ -d $(BINDIR) ] || $(INSTALL) -d $(INSTALL_DIR_FLAGS) $(BINDIR)
 	$(INSTALL) $(INSTALL_EXE_FLAGS) darwinbuild $(BINDIR)