Starting to add install rules.

This commit is contained in:
Harry Moffat 2009-03-24 21:16:28 +00:00
parent c6d9b1bb7f
commit ac8f8c6582
7 changed files with 89 additions and 5 deletions

View file

@ -2,28 +2,39 @@
PY_DEMO_DIRS = equilibrium flames gasdynamics kinetics liquid_vapor \
misc reactors surface_chemistry transport fuel_cells
MAKE = gmake
all:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; make run) ; \
(cd $${d}; $(MAKE)) ; \
done)
run:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; make run) ; \
(cd $${d}; $(MAKE) run) ; \
done)
test:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; make test) ; \
(cd $${d}; $(MAKE) test) ; \
done)
install:
/usr/bin/install -c -d /home/hkmoffa/arch/linux/cantera-1.7_develop/demos/python
/usr/bin/install -c -c -m ug+rw,o+r Makefile /home/hkmoffa/arch/linux/cantera-1.7_develop/demos/python
/usr/bin/install -c -c -m ug+rw,o+r run_examples.py /home/hkmoffa/arch/linux/cantera-1.7_develop/demos/python
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE) install) ; \
done)
clean:
@(for dd in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${dd}..."; \
(cd $${dd}; make -i clean; cd ..) ; \
(cd $${dd}; $(MAKE) -i clean; cd ..) ; \
done)
# end of file

View file

@ -21,6 +21,16 @@ test:
(cd $${d}; $(MAKE) test) ; \
done)
install:
@INSTALL@ -d @ct_demodir@/python
@INSTALL@ -c -m ug+rw,o+r Makefile @ct_demodir@/python
@INSTALL@ -c -m ug+rw,o+r run_examples.py @ct_demodir@/python
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; $(MAKE) install) ; \
done)
clean:
@(for dd in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${dd}..."; \

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium
PY_DEMOS = simple_test stoich_flame adiabatic_flame multiphase_plasma
MAKE = @MAKE@
@ -22,6 +24,16 @@ 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 \

View file

@ -1,5 +1,8 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium/adiabatic_flame
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,6 +10,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r adiabatic.py $(INST_DIR)
@INSTALL@ -c runtest $(INST_DIR)
@INSTALL@ -c cleanup $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r output_blessed_0.txt $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r adiabatic_blessed_0.csv $(INST_DIR)
clean:
rm -f *.log *.csv *.xml
./cleanup

View file

@ -1,5 +1,8 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium/multiphase_plasma
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,6 +10,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r multiphase_plasma.py $(INST_DIR)
@INSTALL@ -c runtest $(INST_DIR)
@INSTALL@ -c cleanup $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r output_blessed_0.txt $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r equil_koh_blessed_0.csv $(INST_DIR)
clean:
rm -f *.log *.csv *.xml
./cleanup

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium/simple_test
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,6 +9,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r simple.py $(INST_DIR)
@INSTALL@ -c runtest $(INST_DIR)
@INSTALL@ -c cleanup $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r output_blessed_0.txt $(INST_DIR)
clean:
rm -f *.log *.csv *.xml
./cleanup

View file

@ -1,12 +1,25 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/equilibrium/stoich_flame
PYTHON_CMD = @PYTHON_CMD@
run:
$(PYTHON_CMD) adiabatic.py
$(PYTHON_CMD) stoich.py
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r stoich.py $(INST_DIR)
@INSTALL@ -c runtest $(INST_DIR)
@INSTALL@ -c cleanup $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r output_blessed_0.txt $(INST_DIR)
clean:
rm -f *.log *.csv *.xml
./cleanup