diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | 2020/Makefile | 7 | ||||
-rw-r--r-- | resources/Makefile-common | 6 |
3 files changed, 13 insertions, 3 deletions
@@ -25,3 +25,6 @@ test.d test.d/test *_ *_.tex + +# Completed minutes (using sed scripts) +*-complete.tex
\ No newline at end of file diff --git a/2020/Makefile b/2020/Makefile index 0c8ebc8..26f6bd1 100644 --- a/2020/Makefile +++ b/2020/Makefile @@ -1,13 +1,14 @@ # Makefile for minutes -MINUTES := $(basename $(shell ls *.tex 2> /dev/null)) +COMPLETES := $(subst .sed.gpg,-complete, $(wildcard *.sed.gpg)) +MINUTES := $(basename $(shell ls *.tex 2> /dev/null | grep -v complete)) \ common-makefile = ../resources/Makefile-common help: - @make -s -f $(common-makefile) help SEND_FILES="$(MINUTES)" + @make -s -f $(common-makefile) help SEND_FILES="$(MINUTES) $(COMPLETES)" -all: $(MINUTES) +all: $(MINUTES) $(COMPLETES) %: make -f $(common-makefile) compile FILE=$* diff --git a/resources/Makefile-common b/resources/Makefile-common index c64793f..ce35c92 100644 --- a/resources/Makefile-common +++ b/resources/Makefile-common @@ -48,6 +48,12 @@ $(output): $(input) $(preamble) $(files-tex) $(files-jpg) $(files-pdf) latex_count=`expr $$latex_count - 1`;\ done; +# Special treatment of minutes complemented with secrets +%-complete.tex: %.tex %.sed.gpg + gpg --decrypt < $(subst .tex,.sed.gpg,$<) > $(subst .tex,_.sed,$<) + sed -f $(subst .tex,_.sed,$<) < $< > $@ + rm -f $(subst .tex,_.sed,$<) + # Clean up clean: rm -f *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~ |