summaryrefslogtreecommitdiff
blob: a3a384a7157c2b00c15964c3b5e0e7075a414d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
RNCS = devbook.rnc glsa.rnc metadata.rnc mirrors.rnc projects.rnc \
       repositories.rnc userinfo.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 *.tar.xz

%.rnc: dtd/%.dtd
	trang -I dtd -O rnc $< $@

devbook.rnc: devmanual/devbook.rnc
	cp $< $@