1.PHONY: all
2all: manual-combined.xml format
3
4.PHONY: debug
5debug: generated manual-combined.xml
6
7manual-combined.xml: generated *.xml
8 rm -f ./manual-combined.xml
9 nix-shell --packages xmloscopy \
10 --run "xmloscopy --docbook5 ./manual.xml ./manual-combined.xml"
11
12.PHONY: format
13format:
14 find ../../ -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
15 xmlformat --config-file "../xmlformat.conf" -i {}
16
17.PHONY: fix-misc-xml
18fix-misc-xml:
19 find . -iname '*.xml' -type f \
20 -exec ../varlistentry-fixer.rb {} ';'
21
22.PHONY: clean
23clean:
24 rm -f manual-combined.xml generated
25
26generated: ./options-to-docbook.xsl
27 nix-build ../../release.nix \
28 --attr manualGeneratedSources.x86_64-linux \
29 --out-link ./generated