master_PRE = masterdb.xml sgmldbs_DATA = \ $(master_PRE:xml=html.xml) \ $(master_PRE:xml=pdf.xml) EXTRA_DIST = $(master_PRE) CLEANFILES = $(sgmldbs_DATA) %.html.xml: %.xml $(AM_V_GEN)$(SED) \ -e 's|@db@|html|g' \ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@ %.pdf.xml: %.xml $(AM_V_GEN)$(SED) \ -e 's|@db@|pdf|g' \ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@