diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 20 |
2 files changed, 9 insertions, 12 deletions
@@ -1 +1,2 @@ *.dtd +*.tar.xz @@ -4,25 +4,21 @@ DTDS = devbook.dtd glsa.dtd metadata.dtd mirrors.dtd \ RNCS = $(patsubst %.dtd,%.rnc,$(DTDS)) ifneq ($(PV),) -PN=nxml-gentoo-schemas-$(PV) +P=nxml-gentoo-schemas-$(PV) else -PN=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d') +P=nxml-gentoo-schemas-$(shell TZ=UTC date '+%Y%m%d') endif -TARBALL=$(PN).tar.xz - -.PHONY: all clean +.PHONY: all dist clean .PRECIOUS: $(RNCS) $(DTDS) -all: $(TARBALL) +all: $(RNCS) -clean: - rm -f *.dtd +dist: Makefile LICENCE schemas.xml $(RNCS) + tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^ -$(TARBALL): Makefile LICENCE schemas.xml $(RNCS) - mkdir -p $(PN) - cp $^ $(PN) - tar cJf $@ $(PN) +clean: + rm -f *.dtd *.tar.xz %.rnc: %.dtd trang -I dtd -O rnc $< $@ |