diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -10,12 +10,15 @@ # make deb-src -------------- produce a DEB source # make deb ------------------ produce a DEB # make docs ----------------- rebuild the manpages (results are checked in) +# make gettext -------------- produce POT files for docs +# make generate-po ---------- generate language specific po file +# make needs-translation ---- generate list of file with unstranlated or fuzzy string for a specific language # make tests ---------------- run the tests (see https://docs.ansible.com/ansible/devel/dev_guide/testing_units.html for requirements) ######################################################## # variable section -NAME = ansible-base +NAME = ansible-core OS = $(shell uname -s) PREFIX ?= '/usr/local' SDIST_DIR ?= 'dist' @@ -31,7 +34,7 @@ else ASCII2MAN = @echo "ERROR: rst2man from docutils command is not installed but is required to build $(MANPAGES)" && exit 1 endif -PYTHON=python +PYTHON ?= python GENERATE_CLI = hacking/build-ansible.py generate-man # fetch version from project release.py as single source-of-truth @@ -58,6 +61,9 @@ DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M) CPUS ?= $(shell nproc) endif +# Intenationalisation and Localisation +LANGUAGES ?= + # DEB build parameters DEBUILD_BIN ?= debuild DEBUILD_OPTS = --source-option="-I" @@ -154,6 +160,8 @@ clean: rm -f test/units/.coverage* rm -rf test/results/*/* find test/ -type f -name '*.retry' -delete + @echo "Cleaning up symlink cache" + rm -f SYMLINK_CACHE.json @echo "Cleaning up Debian building stuff" rm -rf debian rm -rf deb-build @@ -273,6 +281,18 @@ webdocs: coredocs: (cd docs/docsite/; CPUS=$(CPUS) $(MAKE) coredocs) +.PHONY: gettext +gettext: + (cd docs/docsite/; CPUS=$(CPUS) $(MAKE) gettext) + +.PHONY: generate-po +generate-po: + (cd docs/docsite/; CPUS=$(CPUS) LANGUAGES=$(LANGUAGES) $(MAKE) generate-po) + +.PHONY: needs-translation +needs-translation: + (cd docs/docsite/; CPUS=$(CPUS) LANGUAGES=$(LANGUAGES) $(MAKE) needs-translation) + .PHONY: linkcheckdocs linkcheckdocs: (cd docs/docsite/; CPUS=$(CPUS) $(MAKE) linkcheckdocs) |