BASES = en/organisation es/organizacion de/organisation EXTS = eps png ps pdf FILES = $(foreach ext,$(EXTS),$(foreach base,$(BASES),$(base).$(ext))) .PHONY: all all: $(FILES) %.eps: %.fig fig2dev -L eps $< $@ chmod 644 $@ .PRECIOUS: %.eps %.png: %.eps convert $< $@ chmod 644 $@ .PRECIOUS: %.ps %.ps: %.fig fig2dev -L ps $< $@ chmod 644 $@ %.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/organigram