[kernel] r13230 - dists/trunk/linux-kbuild-2.6

Bastian Blank waldi at alioth.debian.org
Tue Mar 24 07:52:35 UTC 2009


Author: waldi
Date: Tue Mar 24 07:52:34 2009
New Revision: 13230

Log:
Makefile.inc: Create directories via the normal install calls.


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

Modified: dists/trunk/linux-kbuild-2.6/Makefile.inc
==============================================================================
--- dists/trunk/linux-kbuild-2.6/Makefile.inc	(original)
+++ dists/trunk/linux-kbuild-2.6/Makefile.inc	Tue Mar 24 07:52:34 2009
@@ -19,15 +19,12 @@
 
 all-local: $(PROGS)
 
-install-local: install-local-dir install-local-progs install-local-scripts install-local-data
-
-install-local-dir:
-	install -d "$(prefix)/$(OUTDIR)"
+install-local: install-local-progs install-local-scripts install-local-data
 
 install-local-progs: $(PROGS)
 	@for p in $^; do \
 	  echo " install -m755 '$$p' '$(prefix)/$(OUTDIR)'"; \
-	  install -m755 "$$p" "$(prefix)/$(OUTDIR)"; \
+	  install -D -m755 "$$p" "$(prefix)/$(OUTDIR)/$$(basename $$p)"; \
 	done
 
 SCRIPTS_REAL = $(addprefix $(top_srcdir)/kbuild/$(OUTDIR)/,$(SCRIPTS))
@@ -35,7 +32,7 @@
 install-local-scripts: $(SCRIPTS_REAL)
 	@for p in $^; do \
 	  echo " install -m755 '$$p' '$(prefix)/$(OUTDIR)'"; \
-	  install -m755 "$$p" "$(prefix)/$(OUTDIR)"; \
+	  install -D -m755 "$$p" "$(prefix)/$(OUTDIR)/$$(basename $$p)"; \
 	done
 
 DATA_REAL = $(addprefix $(top_srcdir)/kbuild/$(OUTDIR)/,$(DATA))
@@ -43,6 +40,6 @@
 install-local-data: $(DATA_REAL)
 	@for p in $^; do \
 	  echo " install -m644 '$$p' '$(prefix)/$(OUTDIR)'"; \
-	  install -m644 "$$p" "$(prefix)/$(OUTDIR)"; \
+	  install -D -m644 "$$p" "$(prefix)/$(OUTDIR)/$$(basename $$p)"; \
 	done
 



More information about the Kernel-svn-changes mailing list