diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .last_build | 0 | ||||
-rw-r--r-- | Makefile | 6 |
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 |
2 | build/ | 2 | build/ |
3 | .last_build | ||
4 | ht.mk | 3 | ht.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 | ||
8 | INPUT = src | 8 | INPUT = src |
9 | BUILD = build | 9 | BUILD = build |
10 | LASTB = .last_build | ||
11 | 10 | ||
12 | HTAWK = ./ht.awk | 11 | HTAWK = ./ht.awk |
13 | HTSH = ./ht.sh | 12 | HTSH = ./ht.sh |
@@ -54,12 +53,11 @@ RSYNCEXCLUDE = \ | |||
54 | "*.bod.txt" \ | 53 | "*.bod.txt" \ |
55 | "tmp/" | 54 | "tmp/" |
56 | RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude | 55 | RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude |
57 | RSYNC = rsync -avz --exclude-from="${RSYNCEXCLUDEFILE}" --delete | 56 | RSYNC = 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 |
88 | clean: ; -rm -rf ${BUILD} ${HTMK} $T ${LASTB} | 86 | clean: ; -rm -rf ${BUILD} ${HTMK} $T |
89 | nuke: clean ; -rm ${TMPL} | 87 | nuke: clean ; -rm ${TMPL} |
90 | 88 | ||
91 | ${RSYNCEXCLUDEFILE}: ${BUILD} | 89 | ${RSYNCEXCLUDEFILE}: ${BUILD} |