CASL2LIBを独立させるため、削除
[YACASL2.git] / test / system / Makefile
index 9668e4c..3d0fc30 100644 (file)
@@ -1,5 +1,13 @@
-check: casl2 comet2 dumpword
-       $(MAKE) -sC casl2
-       $(MAKE) -sC comet2
-       $(MAKE) -sC dumpword
+# 複数の子ディレクトリーでmakeを実行
+CMD = casl2_smoke casl2_opt casl2_cmd casl2_err comet2_smoke comet2_opt comet2_cmd comet2_err casl2rev dumpword
+define make_dirs
+    $(foreach d,$1,$(MAKE) -sC $d $2)
+endef
 
+.PHONY: check clean
+
+check:
+       @$(call make_dirs,$(CMD),$@; )
+
+clean:
+       @$(call make_dirs,$(CMD),$@; )