flags = $(CXXFLAGS.o) $(CXXFLAGS)
endif
-all: show_transform show_shapes
+all: check
############################################################
# Typical block for building a running program
# Continue with other targets if needed
############################################################
+check: show_transform show_shapes
+ @echo Running programs
+ @show_transform
+ @show_shapes
+ @echo Checking results
+ $(MAKE) dodiff
+%.check: %.dat
+ diff $@ $<
+dat = $(wildcard *.dat)
+check = $(dat:.dat=.check)
+
+dodiff: $(check)
+ @echo OK
############################################################
# Cleanup targets
@perl -pi~ -e 's/(^[^.]+)\.o:/\1.o \1.go:/;' $@
include Make.depend
+
+.PHONY: clean veryclean check
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams