BASES = en/package-cycle de/organisation EXTS = eps png ps pdf FILES = $(foreach ext,$(EXTS),$(foreach base,$(BASES),$(base).$(ext))) .PHONY: all all: $(FILES) .PRECIOUS: %.eps %.eps: %.dia dia -t eps $< chmod 644 $@ .PRECIOUS: %.png %.png: %.eps convert $< $@ chmod 644 $@ .PRECIOUS: %.ps %.ps: %.eps convert $< $@ chmod 644 $@ .PRECIOUS: %.pdf %.pdf: %.ps ps2pdf $< $@ chmod 644 $@ .PHONY: clean clean: rm -f $(FILES) .PHONY: upload upload: $(MAKE) -s all chmod -R a+rX $(CURDIR) rsync -Pva --delete $(CURDIR)/ people.debian.org:public_html/graphs/package-cycle