
.PHONY: def
def: nrm run fig

.PHONY: nrm
nrm:
	cd src; make ; cd -
	cd bin; ln -sf ../src/nrm nrm; cd -
	cd bin; ln -sf ../src/intnum intnum; cd -

.PHONY: clean
clean:
	rm -f *~ smo.xy fig*/*.jog
	cd src ; make clean ; cd -

.PHONY: distclean
distclean: clean
	rm -f smo/*.xy nrm/*.xy  fig*/*.* result.txt *.eps fig?.pdf calib.*
	cd src ; make distclean ; cd -

.PHONY: archiv
archiv: distclean
	cd .. ; tar zcvf rameau.tgz rameau/ ; cd -

.PHONY: run
run: table.txt
	rm -f ./fig?/*.* ./nrm/*.xy ./smo/*.xy
	cat table.txt | bash ./bin/run2

.PHONY: fig
fig: run
	bash ./bin/figs
