%.ps : ../Dvi/%.dvi ../Sgml/%.sgml
	cd ../Dvi;\
	make $(notdir $<)
	dvips -t a4 -f < $< > $@

ps: $(notdir $(patsubst %.sgml,%.ps, $(wildcard ../Sgml/*.sgml)))

clean:
	-rm -f *.ps

