2006-02-26 20:30:25 +00:00
|
|
|
XMLINFILES=$(wildcard *.xml.in)
|
|
|
|
XMLFILES = $(patsubst %.xml.in,%.xml,$(XMLINFILES))
|
|
|
|
|
2017-08-15 17:40:48 +00:00
|
|
|
all: po $(XMLFILES) sort
|
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
|
2016-05-18 12:52:40 +00:00
|
|
|
# Run xmllint on each file and exit with non-zero if any validation fails
|
|
|
|
RES=0; for f in $(XMLFILES); do \
|
|
|
|
xmllint --noout --relaxng comps.rng $$f; \
|
|
|
|
RES=$$(($$RES + $$?)); \
|
|
|
|
done; exit $$RES
|
2008-09-10 20:24:08 +00:00
|
|
|
|
2017-04-12 00:21:30 +00:00
|
|
|
sort:
|
2017-04-12 12:09:30 +00:00
|
|
|
@# Run xsltproc on each xml.in file and exit with non-zero if any sorting fails
|
2021-02-18 06:27:35 +00:00
|
|
|
@# The comps-eln.xml.in is not sorted alphabetically but manually
|
|
|
|
@# based on the need needs of Fedora ELN SIG.
|
2017-04-12 12:09:30 +00:00
|
|
|
@RES=0; for f in $(XMLINFILES); do \
|
2021-02-18 06:27:35 +00:00
|
|
|
if [[ "$$f" == 'comps-eln.xml.in' ]]; then \
|
|
|
|
continue; \
|
|
|
|
fi; \
|
2017-04-12 00:21:30 +00:00
|
|
|
xsltproc --novalid -o $$f comps-cleanup.xsl $$f; \
|
|
|
|
RES=$$(($$RES + $$?)); \
|
|
|
|
done; exit $$RES
|
|
|
|
|
2022-06-29 19:36:34 +00:00
|
|
|
.PHONY: comps-eln.xml.in
|
|
|
|
comps-eln.xml.in: comps-eln.xml.in.in
|
|
|
|
./update-eln-extras-comps comps-eln.xml.in.in comps-eln.xml.in
|
|
|
|
|
2006-02-26 20:30:25 +00:00
|
|
|
%.xml: %.xml.in
|
2016-05-18 11:21:52 +00:00
|
|
|
@xmllint --noout $<
|
2008-04-10 17:45:23 +00:00
|
|
|
@if test ".$(CLEANUP)" == .yes; then xsltproc --novalid -o $< comps-cleanup.xsl $<; fi
|
2006-02-26 20:30:25 +00:00
|
|
|
./update-comps $@
|
2008-01-11 21:09:08 +00:00
|
|
|
|
|
|
|
# Add an easy alias to generate a rawhide comps file
|
2022-08-09 11:52:20 +00:00
|
|
|
comps-rawhide.xml comps-rawhide: comps-f38.xml
|
|
|
|
@mv comps-f38.xml comps-rawhide.xml
|