author: kx <kx@radix.pro> 2023-04-06 10:37:20 +0300
committer: kx <kx@radix.pro> 2023-04-06 10:37:20 +0300
commit: b8d9de0a8bff1b815a7f84df279cb608fe2e962b
parent: cbda8cd8fcffd037f28be2d043a05bef12db485a
Commit Summary:
Diffstat:
1 file changed, 23 insertions, 0 deletions
diff --git a/X.org/util/Makefile b/X.org/util/Makefile
new file mode 100644
index 0000000..ac7e3b0
--- /dev/null
+++ b/X.org/util/Makefile
@@ -0,0 +1,30 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := bdftopcf \
+ gccmakedep \
+ imake \
+ lndir \
+ makedepend \
+ util-macros \
+ xorg-cf-files
+
+
+all-recursive downloads_clean-recursive:
+ @set fnord $(MAKEFLAGS); amf=$$2; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ local_target="$$target"; \
+ (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean