f7e1268e (kx 2023-04-06 10:37:52 +0300 1)
f7e1268e (kx 2023-04-06 10:37:52 +0300 2) #
f7e1268e (kx 2023-04-06 10:37:52 +0300 3) # Following command helps to cheate SUBDIRS list:
f7e1268e (kx 2023-04-06 10:37:52 +0300 4) # $ tree -fid .
f7e1268e (kx 2023-04-06 10:37:52 +0300 5) #
f7e1268e (kx 2023-04-06 10:37:52 +0300 6)
f7e1268e (kx 2023-04-06 10:37:52 +0300 7) SUBDIRS := scowl \
f7e1268e (kx 2023-04-06 10:37:52 +0300 8) aspell/ca \
f7e1268e (kx 2023-04-06 10:37:52 +0300 9) aspell/de \
f7e1268e (kx 2023-04-06 10:37:52 +0300 10) aspell/de-alt \
f7e1268e (kx 2023-04-06 10:37:52 +0300 11) aspell/en \
f7e1268e (kx 2023-04-06 10:37:52 +0300 12) aspell/es \
f7e1268e (kx 2023-04-06 10:37:52 +0300 13) aspell/fi \
f7e1268e (kx 2023-04-06 10:37:52 +0300 14) aspell/fr \
f7e1268e (kx 2023-04-06 10:37:52 +0300 15) aspell/it \
f7e1268e (kx 2023-04-06 10:37:52 +0300 16) aspell/ru
f7e1268e (kx 2023-04-06 10:37:52 +0300 17)
f7e1268e (kx 2023-04-06 10:37:52 +0300 18)
f7e1268e (kx 2023-04-06 10:37:52 +0300 19) all-recursive downloads_clean-recursive:
f7e1268e (kx 2023-04-06 10:37:52 +0300 20) @set fnord $(MAKEFLAGS); amf=$$2; \
f7e1268e (kx 2023-04-06 10:37:52 +0300 21) target=`echo $@ | sed s/-recursive//`; \
f7e1268e (kx 2023-04-06 10:37:52 +0300 22) list='$(SUBDIRS)'; for subdir in $$list; do \
f7e1268e (kx 2023-04-06 10:37:52 +0300 23) echo "Making $$target in $$subdir"; \
f7e1268e (kx 2023-04-06 10:37:52 +0300 24) local_target="$$target"; \
f7e1268e (kx 2023-04-06 10:37:52 +0300 25) (cd $$subdir && $(MAKE) $$fnord $$local_target) \
f7e1268e (kx 2023-04-06 10:37:52 +0300 26) || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
f7e1268e (kx 2023-04-06 10:37:52 +0300 27) done; test -z "$$fail"
f7e1268e (kx 2023-04-06 10:37:52 +0300 28)
f7e1268e (kx 2023-04-06 10:37:52 +0300 29) all: all-recursive
f7e1268e (kx 2023-04-06 10:37:52 +0300 30)
f7e1268e (kx 2023-04-06 10:37:52 +0300 31) downloads_clean: downloads_clean-recursive
f7e1268e (kx 2023-04-06 10:37:52 +0300 32)
f7e1268e (kx 2023-04-06 10:37:52 +0300 33) .PHONY: all-recursive downloads_clean-recursive all downloads_clean