2006-02-26 20:30:25 +00:00
|
|
|
XMLINFILES=$(wildcard *.xml.in)
|
|
|
|
XMLFILES = $(patsubst %.xml.in,%.xml,$(XMLINFILES))
|
|
|
|
|
2006-10-29 11:55:48 +00:00
|
|
|
all: po $(XMLFILES)
|
2006-02-26 20:30:25 +00:00
|
|
|
|
|
|
|
po: $(XMLINFILES)
|
2006-11-23 20:24:39 +00:00
|
|
|
make -C po -f Makefile || exit 1
|
2006-02-26 20:30:25 +00:00
|
|
|
|
|
|
|
clean:
|
2008-04-10 17:45:23 +00:00
|
|
|
@rm -fv *~ *.xml
|
2006-02-26 20:30:25 +00:00
|
|
|
|
2008-09-10 22:54:29 +00:00
|
|
|
validate: $(XMLFILES) comps.rng
|
|
|
|
for f in $(XMLFILES); do xmllint --noout --relaxng comps.rng $$f; done
|
2008-09-10 20:24:08 +00:00
|
|
|
|
2006-02-26 20:30:25 +00:00
|
|
|
%.xml: %.xml.in
|
2008-04-10 17:45:23 +00:00
|
|
|
@python -c 'import libxml2; libxml2.parseFile("$<")'
|
|
|
|
@if test ".$(CLEANUP)" == .yes; then xsltproc --novalid -o $< comps-cleanup.xsl $<; fi
|
2006-02-26 20:30:25 +00:00
|
|
|
./update-comps $@
|
|
|
|
@if [ "$@" == "$(RAWHIDECOMPS)" ] ; then \
|
|
|
|
cat $(RAWHIDECOMPS) | sed 's/redhat-release/rawhide-release/g' > comps-rawhide.xml ; \
|
|
|
|
fi
|
2008-01-11 21:09:08 +00:00
|
|
|
|
|
|
|
# Add an easy alias to generate a rawhide comps file
|
2015-02-11 10:19:49 +00:00
|
|
|
comps-rawhide.xml comps-rawhide: comps-f23.xml
|
2015-02-10 21:31:23 +00:00
|
|
|
@mv comps-f23.xml comps-rawhide.xml
|