diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 4 insertions, 23 deletions
@@ -1,7 +1,6 @@ DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \ projects.dtd repositories.dtd -DTDDEPS = $(patsubst %.dtd,%.dep,$(DTDS)) RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) ifneq ($(PV),) @@ -12,36 +11,20 @@ endif TARBALL=$(PN).tar.xz -.SUFFIXES: .dtd .rnc .dep -.PHONY: depend all clean +.PHONY: all clean .PRECIOUS: $(RNCS) $(DTDS) -.INTERMEDIATE: $(DTDDEPS) -all: .depend $(TARBALL) - -depend: .depend +all: $(TARBALL) clean: - rm -f *.dtd *.dep .depend - -.depend: $(DTDDEPS) - cat *.dep > $@ + rm -f *.dtd $(TARBALL): Makefile LICENCE schemas.xml $(RNCS) mkdir -p $(PN) cp $^ $(PN) tar cJf $@ $(PN) -.dtd.dep: - echo -n > $@ - sed -n -e '/ENTITY/s|<!ENTITY % \w\+ SYSTEM "\(.*\)\.dtd">|\1|p' $< | \ - while read dep; do \ - echo "$(patsubst %.dtd,%.rnc,$<): $$dep.rnc $$dep.dtd" >> $@ || exit 1; \ - echo "$(TARBALL): $$dep.rnc" >> $@ || exit 1; \ - $(MAKE) "$$dep.dep" || exit 1; \ - done - -.dtd.rnc: +%.rnc: %.dtd trang -I dtd -O rnc $< $@ %.dtd: @@ -50,5 +33,3 @@ $(TARBALL): Makefile LICENCE schemas.xml $(RNCS) devbook.dtd: wget -N --no-verbose \ https://gitweb.gentoo.org/proj/devmanual.git/plain/$@ - --include .depend |