[kernel] r11986 - dists/trunk/linux-kbuild-2.6/src

Bastian Blank waldi at alioth.debian.org
Sat Aug 9 14:03:19 UTC 2008


Author: waldi
Date: Sat Aug  9 13:37:59 2008
New Revision: 11986

Log:
src/Makefile.inc: Let make check for file availability.


Modified:
   dists/trunk/linux-kbuild-2.6/src/Makefile.inc

Modified: dists/trunk/linux-kbuild-2.6/src/Makefile.inc
==============================================================================
--- dists/trunk/linux-kbuild-2.6/src/Makefile.inc	(original)
+++ dists/trunk/linux-kbuild-2.6/src/Makefile.inc	Sat Aug  9 13:37:59 2008
@@ -19,17 +19,26 @@
 
 all-local: $(PROGS)
 
-install-local: $(PROGS)
-	@list='$(PROGS)'; for p in $$list; do \
-	  echo " install -D '$$p' '$(prefix)/scripts/$(OUTDIR)/$$p'"; \
-	  install -D -m755 "$$p" "$(prefix)/scripts/$(OUTDIR)/$$p"; \
+install-local: install-local-dir install-local-progs install-local-scripts install-local-data
+
+install-local-dir:
+	install -d "$(prefix)/scripts/$(OUTDIR)"
+
+install-local-progs: $(PROGS)
+	@for p in $^; do \
+	  echo " install -m755 '$$p' '$(prefix)/scripts/$(OUTDIR)'"; \
+	  install -m755 "$$p" "$(prefix)/scripts/$(OUTDIR)"; \
 	done
-	@list='$(SCRIPTS)'; for p in $$list; do \
-	  echo " install -D '$(top_srcdir)/scripts/$(OUTDIR)/$$p' '$(prefix)/scripts/$(OUTDIR)/$$p'"; \
-	  install -D -m755 "$(top_srcdir)/scripts/$(OUTDIR)/$$p" "$(prefix)/scripts/$(OUTDIR)/$$p"; \
+
+install-local-scripts: $(SCRIPTS)
+	@for p in $^; do \
+	  echo " install -m755 '$$p' '$(prefix)/scripts/$(OUTDIR)'"; \
+	  install -m755 "$$p" "$(prefix)/scripts/$(OUTDIR)"; \
 	done
-	@list='$(DATA)'; for p in $$list; do \
-	  echo " install -D '$(top_srcdir)/scripts/$(OUTDIR)/$$p' '$(prefix)/scripts/$(OUTDIR)/$$p'"; \
-	  install -D -m644 "$(top_srcdir)/scripts/$(OUTDIR)/$$p" "$(prefix)/scripts/$(OUTDIR)/$$p"; \
+
+install-local-data: $(DATA)
+	@for p in $^; do \
+	  echo " install -m644 '$$p' '$(prefix)/scripts/$(OUTDIR)'"; \
+	  install -m644 "$$p" "$(prefix)/scripts/$(OUTDIR)"; \
 	done
 



More information about the Kernel-svn-changes mailing list