summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Le <philipp-le-prviat@freenet.de>2020-07-01 23:40:02 +0200
committerPhilipp Le <philipp-le-prviat@freenet.de>2021-03-04 22:44:39 +0100
commitc2e3ef1e6336c9d8f078df0d73bf111913f9e750 (patch)
tree99c54b49ec2f64bf5cb0449f3f8421e8cbc6adb8 /Makefile
parentc1db4510292b388c228d8d8dab18c6d09cc869ba (diff)
downloaddcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.zip
dcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.tar.gz
dcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.tar.bz2
Replace manually set revision number and date by Git commit number and date (automatically generated)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f4c0e03..fe43eda 100644
--- a/Makefile
+++ b/Makefile
@@ -24,11 +24,11 @@ clean:
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) ; rm -f *.aux *.fdb_latexmk *.fls *.lof *.log *.lot *.pdf *.synctex.gz
-$(BUILD_DIR)/DCS.pdf: main/DCS.tex $(COMMON_DEPS) */*.tex $(ALL_SVGS)
+$(BUILD_DIR)/DCS.pdf: main/DCS.tex $(COMMON_DEPS) */*.tex $(ALL_SVGS) $(BUILD_DIR)/vcs_info.tex
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) ; $(LATEXMK) ../$<
-$(BUILD_DIR)/%.pdf: main/%.tex $(COMMON_DEPS) %/*.tex $(ALL_SVGS)
+$(BUILD_DIR)/%.pdf: main/%.tex $(COMMON_DEPS) %/*.tex $(ALL_SVGS) $(BUILD_DIR)/vcs_info.tex
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) ; $(LATEXMK) ../$<
@@ -53,6 +53,10 @@ $(BUILD_DIR)/svg/ch04_win_tri.pdf: chapter04/win_tri.svg
$(BUILD_DIR)/svg/ch04_win_gauss.pdf: chapter04/win_gauss.svg
$(BUILD_DIR)/svg/ch06_FFT_Butterfly.pdf: chapter06/FFT_Butterfly.svg
+.PHONY: $(BUILD_DIR)/vcs_info.tex
+$(BUILD_DIR)/vcs_info.tex:
+ ./gen_vcs_info.sh > $@
+
%-watch: main/%.tex
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) ; $(LATEXMK_PVC) ../$<