add ubuntu package to INSTALL
[snark14.git] / examples / Makefile
index f5c92f97d061cd75f4a592b8abb6abb2bc79ea08..d5111c3855c0ebcd779e296313ff71c401612378 100644 (file)
@@ -1,16 +1,22 @@
-.PHONY: all run_all regression
+.PHONY: all run test output clean
 
-all:
-       @echo "Use run_all or regression"
+all: run
+       @echo "Useful make targets: run, test, output"
 
-run_all:
-       ./run_all
+.have_run:
+       @./run_all
+       @touch .have_run
 
-regression:
-       ./regression
+run: .have_run
+
+test: .have_run
+       @./regression
+
+output: .have_run
+       @less */b[0-9].out */b[0-9][0-9].out
 
 clean:
-       @rm -f */b[0-9].out */b1[0-9].out */file11 */prjfil */recfil */eval */src/.o b1/punch b10/eval \
-       b11/RPRTsuperiorization b11/RPRTklds */MAPUser1 b9/src/*.o b9/snark_e.in b9/snark_e.out \
-       b9/testem.1 b9/fomfil.1 */snark.lock */bin/*
+       @rm -f */b[0-9][0-9].out */b1[0-9].out */file11 */prjfil */recfil */eval */src/.o */punch b*/src/*.o */MAPUser1  */snark.lock b*/bin/*
+       @rm -f */RPRTsuperiorization */RPRTklds b9/snark_e.in b9/snark_e.out b9/testem.1 b9/fomfil.1
+       @rm -f .have_run