| 1 |
thl |
1.1 |
XMLINFILES=$(wildcard *.xml.in)
|
| 2 |
|
|
XMLFILES = $(patsubst %.xml.in,%.xml,$(XMLINFILES))
|
| 3 |
|
|
|
| 4 |
|
|
all: po $(XMLFILES)
|
| 5 |
|
|
|
| 6 |
|
|
po: $(XMLINFILES)
|
| 7 |
|
|
make -C po -f Makefile || exit 1
|
| 8 |
|
|
|
| 9 |
|
|
clean:
|
| 10 |
|
|
@rm -fv *~ *.xml
|
| 11 |
|
|
|
| 12 |
|
|
%.xml: %.xml.in
|
| 13 |
|
|
@python -c 'import libxml2; libxml2.parseFile("$<")'
|
| 14 |
|
|
@if test ".$(CLEANUP)" == .yes; then xsltproc --novalid -o $< comps-cleanup.xsl $<; fi
|
| 15 |
|
|
./update-comps $@
|
| 16 |
|
|
@if [ "$@" == "$(RAWHIDECOMPS)" ] ; then \
|
| 17 |
|
|
cat $(RAWHIDECOMPS) | sed 's/redhat-release/rawhide-release/g' > comps-rawhide.xml ; \
|
| 18 |
|
|
fi
|
| 19 |
|
|
|
| 20 |
|
|
# Add an easy alias to generate a rawhide comps file
|
| 21 |
|
|
comps-rawhide: comps-f10.xml
|
| 22 |
|
|
@mv comps-f10.xml comps-rawhide.xml
|