DTDS = glsa.dtd metadata.dtd mirrors.dtd projects.dtd \ repositories.dtd userinfo.dtd RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) devbook.rnc ifneq ($(PV),) P=nxml-gentoo-schemas-$(PV) else P=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d') endif .PHONY: all dist clean .PRECIOUS: $(RNCS) all: $(RNCS) dist: Makefile LICENCE schemas.xml $(RNCS) tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^ clean: rm -f *.dtd *.stamp *.tar.xz %.rnc: %.dtd trang -I dtd -O rnc $< $@ $(DTDS): wget -N --no-verbose https://www.gentoo.org/dtd/$@ devbook.rnc: devbook.stamp devbook.stamp: wget -N --no-verbose \ https://gitweb.gentoo.org/proj/devmanual.git/plain/devbook.rnc touch -r devbook.rnc $@