Another iteration at fixing install

This commit is contained in:
Harry Moffat 2009-03-24 22:41:03 +00:00
parent 219d9b6293
commit 5181175474
10 changed files with 115 additions and 13 deletions

View file

@ -1,30 +1,43 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors
PY_DEMOS = combustor_sim functors_sim mix1_sim mix2_sim piston_sim reactor1_sim \
reactor2_sim sensitivity_sim surf_pfr_sim
reactor2_sim sensitivity_sim surf_pfr_sim
all:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
(cd "$${py}"; @MAKE@ ) ; \
(cd "$${py}"; @MAKE@ ) ; \
done)
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
(cd "$${py}"; @MAKE@ run ) ; \
(cd "$${py}"; @MAKE@ run ) ; \
done)
test:
@(for py in $(PY_DEMOS) ; do \
echo "testing $${py}..."; \
(cd "$${py}"; @MAKE@ test ) ; \
(cd "$${py}"; @MAKE@ test ) ; \
done)
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r Makefile $(INST_DIR)
@(for py in $(PY_DEMOS) ; do \
echo "installing $${py}..."; \
(cd "$${py}"; @MAKE@ install ) ; \
done)
clean:
@(for py in $(PY_DEMOS) ; do \
echo "testing $${py}..."; \
(cd "$${py}"; @MAKE@ clean ) ; \
(cd "$${py}"; @MAKE@ clean ) ; \
done)
rm -f *.log *.csv *.xml

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/combustor_sim
PYTHON_CMD = @PYTHON_CMD@
all:
@ -10,6 +12,15 @@ 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 combustor.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 combustor_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/reactors/functors_sim
PYTHON_CMD = @PYTHON_CMD@
all:
@ -9,8 +11,15 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r functors.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/mix1_sim
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,8 +9,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r mix1.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/mix2_sim
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,8 +9,15 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r mix2.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/piston_sim
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,8 +9,17 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r piston.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/reactors1_sim
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,8 +9,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r reactor1.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
# end of file

View file

@ -1,5 +1,8 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/reactor2_sim
PYTHON_CMD = @PYTHON_CMD@
all:
@ -10,8 +13,15 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r reactor2.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/sensitivity_sim
PYTHON_CMD = @PYTHON_CMD@
run:
@ -7,8 +9,15 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r sensitivity1.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
# end of file

View file

@ -1,5 +1,7 @@
#!/bin/sh
INST_DIR=@ct_demodir@/python/reactors/surf_pfr_sim
PYTHON_CMD = @PYTHON_CMD@
all:
@ -10,8 +12,16 @@ run:
test:
./runtest
install:
@INSTALL@ -d $(INST_DIR)
@INSTALL@ -c -m ug+rw,o+r surf_pfr.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 surf_pfr_blessed_0.csv $(INST_DIR)
clean:
rm -f *.log *.csv *.xml
./cleanup
# end of file