c704b3ba (kx 2023-04-07 10:41:29 +0300 1)
c704b3ba (kx 2023-04-07 10:41:29 +0300 2) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 3) # Following command helps to cheate SUBDIRS list:
c704b3ba (kx 2023-04-07 10:41:29 +0300 4) # $ tree -fid .
c704b3ba (kx 2023-04-07 10:41:29 +0300 5) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 6)
6f785531 (kx 2023-12-28 18:15:35 +0300 7) SUBDIRS := cython \
6f785531 (kx 2023-12-28 18:15:35 +0300 8) m2crypto \
c704b3ba (kx 2023-04-07 10:41:29 +0300 9) pip \
c704b3ba (kx 2023-04-07 10:41:29 +0300 10) setuptools \
c704b3ba (kx 2023-04-07 10:41:29 +0300 11) wheel
c704b3ba (kx 2023-04-07 10:41:29 +0300 12)
c704b3ba (kx 2023-04-07 10:41:29 +0300 13)
c704b3ba (kx 2023-04-07 10:41:29 +0300 14) all-recursive downloads_clean-recursive:
c704b3ba (kx 2023-04-07 10:41:29 +0300 15) @set fnord $(MAKEFLAGS); amf=$$2; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 16) target=`echo $@ | sed s/-recursive//`; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 17) list='$(SUBDIRS)'; for subdir in $$list; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 18) echo "Making $$target in $$subdir"; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 19) local_target="$$target"; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 20) (cd $$subdir && $(MAKE) $$fnord $$local_target) \
c704b3ba (kx 2023-04-07 10:41:29 +0300 21) || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 22) done; test -z "$$fail"
c704b3ba (kx 2023-04-07 10:41:29 +0300 23)
c704b3ba (kx 2023-04-07 10:41:29 +0300 24) all: all-recursive
c704b3ba (kx 2023-04-07 10:41:29 +0300 25)
c704b3ba (kx 2023-04-07 10:41:29 +0300 26) downloads_clean: downloads_clean-recursive
c704b3ba (kx 2023-04-07 10:41:29 +0300 27)
c704b3ba (kx 2023-04-07 10:41:29 +0300 28) .PHONY: all-recursive downloads_clean-recursive all downloads_clean