cantera/Cantera/python/examples/equilibrium/Makefile.in
2009-03-24 21:16:28 +00:00

46 lines
871 B
Makefile

#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium
PY_DEMOS = simple_test stoich_flame adiabatic_flame multiphase_plasma
MAKE = @MAKE@
all:
$(MAKE) run
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
cd "$${py}"; \
$(MAKE) run ; \
cd .. ; \
done)
test:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py} test"; \
cd "$${py}"; \
$(MAKE) test ; \
cd .. ; \
done)
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r plotting.py $(INST_DIR)
@(for d in $(PY_DEMOS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE) install) ; \
done)
clean:
rm -f *.log *.csv *.xml
@(for py in $(PY_DEMOS) ; do \
cd "$${py}"; \
$(MAKE) clean ; \
cd .. ; \
done)
# end of file