fedora-comps/Makefile
Lubomír Sedlář f7abece0cb Don't use libxml2-python in Makefile
It's only effect is to report an error on file that can not be parsed.
The same can be achieved with xmllint, while cutting one dependency.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2016-05-18 14:43:57 +02:00

26 lines
709 B
Makefile

XMLINFILES=$(wildcard *.xml.in)
XMLFILES = $(patsubst %.xml.in,%.xml,$(XMLINFILES))
all: po $(XMLFILES)
po: $(XMLINFILES)
make -C po -f Makefile || exit 1
clean:
@rm -fv *~ *.xml
validate: $(XMLFILES) comps.rng
for f in $(XMLFILES); do xmllint --noout --relaxng comps.rng $$f; done
%.xml: %.xml.in
@xmllint --noout $<
@if test ".$(CLEANUP)" == .yes; then xsltproc --novalid -o $< comps-cleanup.xsl $<; fi
./update-comps $@
@if [ "$@" == "$(RAWHIDECOMPS)" ] ; then \
cat $(RAWHIDECOMPS) | sed 's/redhat-release/rawhide-release/g' > comps-rawhide.xml ; \
fi
# Add an easy alias to generate a rawhide comps file
comps-rawhide.xml comps-rawhide: comps-f25.xml
@mv comps-f25.xml comps-rawhide.xml