summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-02-29 16:59:56 +0100
committerUlrich Müller <ulm@gentoo.org>2020-02-29 16:59:56 +0100
commit8faabd289b20cb21c739a1915ea9ed22401c5332 (patch)
tree44bc8f46b59d6e34789e33b82637f26038cc4bbe
parentMakefile: Update URL for devbook.dtd. (diff)
downloadnxml-gentoo-schemas-8faabd289b20cb21c739a1915ea9ed22401c5332.tar.gz
nxml-gentoo-schemas-8faabd289b20cb21c739a1915ea9ed22401c5332.tar.bz2
nxml-gentoo-schemas-8faabd289b20cb21c739a1915ea9ed22401c5332.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--.gitignore2
-rw-r--r--Makefile27
2 files changed, 4 insertions, 25 deletions
diff --git a/.gitignore b/.gitignore
index 76c449f..7d15794 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-*.dep
*.dtd
-.depend
diff --git a/Makefile b/Makefile
index cc4406b..304ae7e 100644
--- a/Makefile
+++ b/Makefile
@@ -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