latex-packages/Makefile

29 lines
792 B
Makefile
Raw Permalink Normal View History

2021-10-06 23:10:25 +02:00
.PHONY: build
BUILD_FLAGS=--source-dir src --build-dir build --recursive --git-version --pytex-version --license --author "Maximilian Keßler" --pytex-info-text --extra-header ".build/header_info.txt" --name "prepend-author"
2021-10-06 23:10:25 +02:00
2021-10-06 23:21:01 +02:00
build: .initsubmodulelock
@python3 build.py ${BUILD_FLAGS}
dirty: .initsubmodulelock
@python3 build.py ${BUILD_FLAGS} --allow-dirty
2021-10-06 23:21:01 +02:00
init: .initsubmodulelock .gitconfiglock
2021-10-07 09:01:50 +02:00
config: .gitconfiglock
2021-10-06 23:21:01 +02:00
.initsubmodulelock:
@git submodule update --init
@touch .initsubmodulelock
.gitconfiglock:
@echo "[Make config] Setting git configs to prevent wrong pushes"
@git config push.recurseSubmodules check
@git config status.submodulesummary 1
@echo "[Push annotated tags by default]"
@git config push.followTags true
@touch .gitconfiglock
2021-10-19 21:03:31 +02:00
clean:
-rm -r build/