fedora-comps/Makefile
Dennis Gilmore c5c39ca754 add f25 comps file and use it for rawhide
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-02-24 12:51:01 -06:00

26 lines
742 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
@python -c 'import libxml2; libxml2.parseFile("$<")'
@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