mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Renaming asciidoc sources to .in.
Change manpages to build from *.in and add comments about how the make targets work.
This commit is contained in:
11
Makefile
11
Makefile
@@ -14,12 +14,17 @@ all: clean python
|
|||||||
tests:
|
tests:
|
||||||
PYTHONPATH=./lib nosetests -v
|
PYTHONPATH=./lib nosetests -v
|
||||||
|
|
||||||
|
# To force a rebuild of the docs run 'touch ansible.spec && make docs'
|
||||||
docs: $(MANPAGES)
|
docs: $(MANPAGES)
|
||||||
|
|
||||||
%.1.asciidoc.gen: %.1.asciidoc ansible.spec
|
# Regenerate %.1.asciidoc if %.1.asciidoc.in has been modified more
|
||||||
|
# recently than %.1.asciidoc.
|
||||||
|
%.1.asciidoc: %.1.asciidoc.in
|
||||||
sed "s/%VERSION%/$(RPMVERSION)/" $< > $@
|
sed "s/%VERSION%/$(RPMVERSION)/" $< > $@
|
||||||
|
|
||||||
%.1: %.1.asciidoc.gen
|
# Regenerate %.1 if %.1.asciidoc or ansible.spec has been modified
|
||||||
|
# more recently than %.1. (Implicitly runs the %.1.asciidoc recipe)
|
||||||
|
%.1: %.1.asciidoc ansible.spec
|
||||||
$(ASCII2MAN)
|
$(ASCII2MAN)
|
||||||
|
|
||||||
loc:
|
loc:
|
||||||
@@ -45,7 +50,7 @@ clean:
|
|||||||
find . -type f \( -name "*.swp" \) -delete
|
find . -type f \( -name "*.swp" \) -delete
|
||||||
@echo "Cleaning up asciidoc to man transformations and results"
|
@echo "Cleaning up asciidoc to man transformations and results"
|
||||||
find ./docs/man -type f -name "*.xml" -delete
|
find ./docs/man -type f -name "*.xml" -delete
|
||||||
find ./docs/man -type f -name "*.gen" -delete
|
find ./docs/man -type f -name "*.asciidoc" -delete
|
||||||
@echo "Cleaning up output from test runs"
|
@echo "Cleaning up output from test runs"
|
||||||
-rm -rf test/test_data
|
-rm -rf test/test_data
|
||||||
@echo "Cleaning up RPM building stuff"
|
@echo "Cleaning up RPM building stuff"
|
||||||
|
|||||||
2
docs/man/.gitignore
vendored
2
docs/man/.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
*.xml
|
*.xml
|
||||||
*.gen
|
*.asciidoc
|
||||||
|
|||||||
Reference in New Issue
Block a user