PAWX11 = $(CERN_ROOT)/bin/pawX11 TEMP = /tmp/tres_makefile_area rm = /bin/rm all: tres.pdf eres.pdf %.pdf: %.ps ps2pdf $^ $@ %.gz: % gzip $^ %.ps: %.dvi dvips -Ppdf -o $@ $^ %.dvi: %.tex latex $^ latex $^ %.tar: %.tex $(wildcard %.eps) tar -zcf $@ $^ tresexe.sh: $(PAWX11) tres.f tres.kumac sexec.header tres.sl $(rm) -rf $(TEMP) mkdir $(TEMP) cp $^ $(TEMP) tar zcf tresexe.tgz -C $(TEMP) . $(rm) -rf $(TEMP) cat sexec.header tresexe.tgz >$@ $(rm) -rf tresexe.tgz chmod +x $@ tres.sl: tres.f f77 -shared -o $@ $^