From fc490942606ac2394160ab6f12cac100038c8929 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 24 May 2005 06:13:03 +0000 Subject: [PATCH] 2005-03-22 Roland McGrath * Makefile ($(distname).tar): Fail if sysdeps/.../configure files are not all up to date. Touch configure files after cvs export. (glibc-port-%-$(dist-version).tar): Likewise. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a65257be..d1cbbef4 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,14 @@ dist-ports: $(foreach Z,.bz2 .gz,$(distname).tar$Z) md5sum $^ $(distname).tar: @rm -fr $(basename $@) + $(MAKE) -q `find sysdeps -name configure` $(do-export) ports + find $(basename $@) -name configure -print | xargs touch tar cf $@ $(basename $@) rm -fr $(basename $@) +sysdeps-of-stem = sysdeps/$* sysdeps/unix/sysv/linux/$* + .PRECIOUS: %.gz %.bz2 # Don't delete output as intermediate files. dist-port-%: $(foreach Z,.bz2 .gz,glibc-port-%-$(dist-version).tar$Z) md5sum $^ @@ -33,9 +37,10 @@ glibc-port-%-$(dist-version).tar: configure ChangeLog @rm -fr $(basename $@) $(do-export) -l ports rm -f $(basename $@)/ChangeLog.[a-z]* - $(do-export) ports/ChangeLog.$* \ - ports/sysdeps/$* ports/sysdeps/unix/sysv/linux/$* + $(MAKE) -q `find $(sysdeps-of-stem) -name configure` + $(do-export) ports/ChangeLog.$* $(addprefix ports/,$(sysdeps-of-stem)) mv $(basename $@)/ports/* $(basename $@)/ rmdir $(basename $@)/ports + find $(basename $@) -name configure -print | xargs touch tar cf $@ $(basename $@) rm -fr $(basename $@) -- 2.11.4.GIT