about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-05-20 09:35:50 -0500
committerCase Duckworth2022-05-20 09:36:20 -0500
commit79435fa5cde54c0988c484a8e799caacff4d5897 (patch)
treed3cc58280ce73a0e8d680e248bb97b24ee54694e
parentChange content (diff)
downloadhat-trick-79435fa5cde54c0988c484a8e799caacff4d5897.tar.gz
hat-trick-79435fa5cde54c0988c484a8e799caacff4d5897.zip
Use rsync -u to avoid .last_build
-rw-r--r--.gitignore1
-rw-r--r--.last_build0
-rw-r--r--Makefile6
3 files changed, 2 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore index 6179cfb..6503210 100644 --- a/.gitignore +++ b/.gitignore
@@ -1,4 +1,3 @@
1.tmp 1.tmp
2build/ 2build/
3.last_build
4ht.mk 3ht.mk
diff --git a/.last_build b/.last_build new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.last_build
diff --git a/Makefile b/Makefile index 168fac8..87e730d 100644 --- a/Makefile +++ b/Makefile
@@ -7,7 +7,6 @@ SITE_TITLE = acdw.casa
7 7
8INPUT = src 8INPUT = src
9BUILD = build 9BUILD = build
10LASTB = .last_build
11 10
12HTAWK = ./ht.awk 11HTAWK = ./ht.awk
13HTSH = ./ht.sh 12HTSH = ./ht.sh
@@ -54,12 +53,11 @@ RSYNCEXCLUDE = \
54 "*.bod.txt" \ 53 "*.bod.txt" \
55 "tmp/" 54 "tmp/"
56RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude 55RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude
57RSYNC = rsync -avz --exclude-from="${RSYNCEXCLUDEFILE}" --delete 56RSYNC = rsync -auvz --exclude-from="${RSYNCEXCLUDEFILE}" --delete
58 57
59#################### 58####################
60 59
61${BUILD}: ${BUILD_INPUTS} 60${BUILD}: ${BUILD_INPUTS}
62 @touch ${LASTB}
63 @mkdir -p ${BUILD} 61 @mkdir -p ${BUILD}
64 cp -a ${BUILD_INPUTS} $@ 62 cp -a ${BUILD_INPUTS} $@
65 ${MAKE} -C $@ -f ${HTMK} build 63 ${MAKE} -C $@ -f ${HTMK} build
@@ -85,7 +83,7 @@ ${PTMPL}: ; printf '${PTMPC}' > '$@'
85${ITMPL}: ; printf '${ITMPC}' > '$@' 83${ITMPL}: ; printf '${ITMPC}' > '$@'
86 84
87.PHONY: clean clean-build nuke 85.PHONY: clean clean-build nuke
88clean: ; -rm -rf ${BUILD} ${HTMK} $T ${LASTB} 86clean: ; -rm -rf ${BUILD} ${HTMK} $T
89nuke: clean ; -rm ${TMPL} 87nuke: clean ; -rm ${TMPL}
90 88
91${RSYNCEXCLUDEFILE}: ${BUILD} 89${RSYNCEXCLUDEFILE}: ${BUILD}