diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-02-29 16:59:56 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-02-29 16:59:56 +0100 |
commit | 8faabd289b20cb21c739a1915ea9ed22401c5332 (patch) | |
tree | 44bc8f46b59d6e34789e33b82637f26038cc4bbe | |
parent | Makefile: Update URL for devbook.dtd. (diff) | |
download | nxml-gentoo-schemas-20200229.tar.gz nxml-gentoo-schemas-20200229.tar.bz2 nxml-gentoo-schemas-20200229.zip |
Makefile: No more automatic dependencies.nxml-gentoo-schemas-20200229
The remaining DTDs don't have any interdependencies, which much
simplifies things.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 27 |
2 files changed, 4 insertions, 25 deletions
@@ -1,3 +1 @@ -*.dep *.dtd -.depend @@ -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 |