diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-11 20:25:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-11 20:25:20 +0000 |
commit | 5aac655a15407ac11084a7f01ab9660a00123ba3 (patch) | |
tree | 344b77bedf299bce6cf5e4b28af410605c5cacf9 /Master/texmf-dist/source/latex/doclicense/Makefile | |
parent | f89b5a8fe8c09cc3ac09a394ef71ef2311ff08e7 (diff) |
doclicense (11jul21)
git-svn-id: svn://tug.org/texlive/trunk@59899 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/doclicense/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/doclicense/Makefile | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/doclicense/Makefile b/Master/texmf-dist/source/latex/doclicense/Makefile index 62eb5c63ca6..bfa65debc3f 100644 --- a/Master/texmf-dist/source/latex/doclicense/Makefile +++ b/Master/texmf-dist/source/latex/doclicense/Makefile @@ -6,25 +6,35 @@ # For more details about the licensing, refer to the README.md file. TEXMFHOME ?= $(shell kpsewhich -var-value TEXMFHOME) +SHELL := /bin/bash -o nounset -o pipefail -o errexit -all: install build manifest.txt +.PHONY: all +all: install build -build: check-quick doclicense.sty doclicense.pdf +.PHONY: build +build: manifest.txt doclicense.sty doclicense.pdf +.PHONY: ci +ci: lint build + +.PHONY: install install: mkdir --parents "$(TEXMFHOME)/tex/latex/" test -L "$(TEXMFHOME)/tex/latex/doclicense" || ln --no-target-directory --symbolic "$$PWD" "$(TEXMFHOME)/tex/latex/doclicense" -check-quick: doclicense.dtx - chktex "$<" - +# Run before release. +.PHONY: check check: run_tests doclicense.sty lint ./"$<" -lint: +.PHONY: lint +lint: doclicense.dtx + chktex "$<" find -regextype posix-egrep -iregex '.*\.(tex|ldf)' -and -not -iname '*-plaintext.tex' -print0 | xargs --null chktex + [[ -z "$(shell lacheck "$<" *.ldf | grep 'possible unwanted space')" ]] reuse lint +.PHONY: clean clean: rm -rf *.sty *.pdf *.aux *.out *.glo *.gls *.hd *.idx *.ilg *.ind *.log *.toc |