diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-11-18 14:21:45 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-11-19 00:25:46 +0000 |
commit | accb18329df0dfef7b459d7db541b953c816e202 (patch) | |
tree | bbeead478f413d63ba18c92034ac1c129b799ad7 | |
parent | dab71a37d0fed9bd93db3d8b3779ca86c0c453ec (diff) | |
download | coreutils-accb18329df0dfef7b459d7db541b953c816e202.tar.xz |
build: fix VPATH build with --disable-dependency-tracking
* src/local.mk: Run `mkdir -p src` in all our explicit rules,
as in a VPATH build the src/ dir is only created at configure time
as a side effect of dependency tracking generation.
-rw-r--r-- | src/local.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/local.mk b/src/local.mk index 0cfa7f5ae..31d050650 100644 --- a/src/local.mk +++ b/src/local.mk @@ -436,6 +436,7 @@ endif SINGLE_BINARY CLEANFILES += src/coreutils_symlinks src/coreutils_symlinks: Makefile $(AM_V_GEN)touch $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)for i in x $(single_binary_progs); do \ test $$i = x && continue; \ rm -f src/$$i$(EXEEXT) || exit $$?; \ @@ -445,6 +446,7 @@ src/coreutils_symlinks: Makefile CLEANFILES += src/coreutils_shebangs src/coreutils_shebangs: Makefile $(AM_V_GEN)touch $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)for i in x $(single_binary_progs); do \ test $$i = x && continue; \ rm -f src/$$i$(EXEEXT) || exit $$?; \ @@ -464,6 +466,7 @@ clean-local: BUILT_SOURCES += src/dircolors.h src/dircolors.h: src/dcgen src/dircolors.hin $(AM_V_GEN)rm -f $@ $@-t + $(AM_V_at)${MKDIR_P} src $(AM_V_at)$(PERL) -w -- $(srcdir)/src/dcgen \ $(srcdir)/src/dircolors.hin > $@-t $(AM_V_at)chmod a-w $@-t @@ -476,6 +479,7 @@ src/dircolors.h: src/dcgen src/dircolors.hin # known ints (currently 128-bit). BUILT_SOURCES += $(top_srcdir)/src/primes.h $(top_srcdir)/src/primes.h: + $(AM_V_at)${MKDIR_P} src $(MAKE) src/make-prime-list$(EXEEXT) $(AM_V_GEN)rm -f $@ $@-t $(AM_V_at)src/make-prime-list$(EXEEXT) 5000 > $@-t @@ -553,6 +557,7 @@ src/fs-kernel-magic: Makefile src/fs-latest-magic.h BUILT_SOURCES += src/fs-is-local.h src/fs-is-local.h: src/stat.c src/extract-magic $(AM_V_GEN)rm -f $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)$(PERL) $(srcdir)/src/extract-magic \ --local $(srcdir)/src/stat.c > $@t $(AM_V_at)chmod a-w $@t @@ -561,6 +566,7 @@ src/fs-is-local.h: src/stat.c src/extract-magic BUILT_SOURCES += src/fs.h src/fs.h: src/stat.c src/extract-magic $(AM_V_GEN)rm -f $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)$(PERL) $(srcdir)/src/extract-magic \ $(srcdir)/src/stat.c > $@t $(AM_V_at)chmod a-w $@t @@ -569,6 +575,7 @@ src/fs.h: src/stat.c src/extract-magic BUILT_SOURCES += src/version.c src/version.c: Makefile $(AM_V_GEN)rm -f $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)printf '#include <config.h>\n' > $@t $(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t $(AM_V_at)chmod a-w $@t @@ -577,6 +584,7 @@ src/version.c: Makefile BUILT_SOURCES += src/version.h src/version.h: Makefile $(AM_V_GEN)rm -f $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)printf 'extern char const *Version;\n' > $@t $(AM_V_at)chmod a-w $@t $(AM_V_at)mv $@t $@ @@ -589,6 +597,7 @@ src/version.h: Makefile DISTCLEANFILES += src/coreutils.h src/coreutils.h: Makefile $(AM_V_GEN)rm -f $@ + $(AM_V_at)${MKDIR_P} src $(AM_V_at)for prog in x $(single_binary_progs); do \ test $$prog = x && continue; \ prog=`basename $$prog`; \ |