improve patch dependency rules

approach in commit 8a92c5230c only
worked for the "current version" of the packages configured with
GCC_VER, etc. now, all versions have proper dependencies so that it's
possible to test applicability of new patches just by running make
with the directory name.
This commit is contained in:
Rich Felker 2020-01-31 16:53:24 -05:00
parent 9515af5143
commit 59d9dff00c
1 changed files with 3 additions and 8 deletions

View File

@ -139,14 +139,9 @@ musl-git-%:
rm -rf $@ rm -rf $@
mv $@.tmp $@ mv $@.tmp $@
binutils-$(BINUTILS_VER): $(wildcard patches/binutils-$(BINUTILS_VER) patches/binutils-$(BINUTILS_VER)/*)
gcc-$(GCC_VER): $(wildcard patches/gcc-$(GCC_VER) patches/gcc-$(GCC_VER)/*) # Add deps for all patched source dirs on their patchsets
musl-$(MUSL_VER): $(wildcard patches/musl-$(MUSL_VER) patches/musl-$(MUSL_VER)/*) $(foreach dir,$(notdir $(basename $(basename $(basename $(wildcard hashes/*))))),$(eval $(dir): $$(wildcard patches/$(dir) patches/$(dir)/*)))
gmp-$(GMP_VER): $(wildcard patches/gmp-$(GMP_VER) patches/gmp-$(GMP_VER)/*)
mpfr-$(MPFR_VER): $(wildcard patches/mpfr-$(MPFR_VER) patches/mpfr-$(MPFR_VER)/*)
mpc-$(MPC_VER): $(wildcard patches/mpc-$(MPC_VER) patches/mpc-$(MPC_VER)/*)
ils-$(ISL_VER): $(wildcard patches/isl-$(ISL_VER) patches/isl-$(ISL_VER)/*)
linux-$(LINUX_VER): $(wildcard patches/linux-$(LINUX_VER) patches/linux-$(LINUX_VER)/*)
extract_all: | $(SRC_DIRS) extract_all: | $(SRC_DIRS)