Fix duplicated building of TCharm .ci files
[charm.git] / examples / fem / Makefile
blob954a77372d0231a464dd8761340c4dc5d536e8e8
1 DIRS = \
2 simple2D \
3 matrix \
4 crack2D \
6 TESTDIRS = $(DIRS)
8 all: $(foreach i,$(DIRS),build-$i)
10 test: $(foreach i,$(TESTDIRS),test-$i)
12 bgtest: $(foreach i,$(TESTDIRS),bgtest-$i)
14 clean: $(foreach i,$(DIRS),clean-$i)
15 rm -f TAGS #*#
16 rm -f core *~
18 $(foreach i,$(DIRS),build-$i):
19 $(MAKE) -C $(subst build-,,$@) all OPTS='$(OPTS)'
21 $(foreach i,$(DIRS),test-$i):
22 $(MAKE) -C $(subst test-,,$@) test OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
24 $(foreach i,$(DIRS),bgtest-$i):
25 $(MAKE) -C $(subst bgtest-,,$@) bgtest OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
27 $(foreach i,$(DIRS),clean-$i):
28 $(MAKE) -C $(subst clean-,,$@) clean OPTS='$(OPTS)'