diff options
author | Case Duckworth | 2022-05-27 13:27:21 -0500 |
---|---|---|
committer | Case Duckworth | 2022-05-27 13:27:21 -0500 |
commit | e7254223846dbec352628aa9d156e0fe323a4e93 (patch) | |
tree | 8c02009b7981a1182b952ccf307b52f1700bb5b3 /Makefile | |
parent | Update footer -- and properly integrate it into Make (diff) | |
download | hat-trick-e7254223846dbec352628aa9d156e0fe323a4e93.tar.gz hat-trick-e7254223846dbec352628aa9d156e0fe323a4e93.zip |
New post, asset moving, dir-locals, etc.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile index 537fabe..328e634 100644 --- a/Makefile +++ b/Makefile | |||
@@ -6,6 +6,7 @@ UPLOAD_TARGET = hetzner:/var/www/acdw.casa/ | |||
6 | SITE_TITLE = acdw.casa | 6 | SITE_TITLE = acdw.casa |
7 | 7 | ||
8 | INPUT = src | 8 | INPUT = src |
9 | ASSET = asset | ||
9 | BUILD = build | 10 | BUILD = build |
10 | 11 | ||
11 | HTAWK = ./ht.awk | 12 | HTAWK = ./ht.awk |
@@ -39,7 +40,7 @@ ITMPC = \ | |||
39 | done) \ | 40 | done) \ |
40 | </ul> | 41 | </ul> |
41 | ITMPR = \ | 42 | ITMPR = \ |
42 | index.html: ${ITMPL} $$(cat ${TPG}); \ | 43 | index.html: ${ITMPL} _index.htm ${INCLUDES} $$(cat ${TPG}); \ |
43 | env HTTMP='$T' HTOUT='\$$@' \ | 44 | env HTTMP='$T' HTOUT='\$$@' \ |
44 | ${HTSH} "${ITMPL}" < /dev/null > '\$$@' | 45 | ${HTSH} "${ITMPL}" < /dev/null > '\$$@' |
45 | 46 | ||
@@ -50,7 +51,7 @@ RTMPR = \ | |||
50 | ${HTSH} "${RTMPL}" < /dev/null > '\$$@' | 51 | ${HTSH} "${RTMPL}" < /dev/null > '\$$@' |
51 | 52 | ||
52 | TMPL = ${PTMPL} ${ITMPL} ${RTMPL} | 53 | TMPL = ${PTMPL} ${ITMPL} ${RTMPL} |
53 | BUILD_INPUTS = ${INPUT}/* ${TMPL} ${HT} | 54 | BUILD_INPUTS = ${INPUT}/* ${ASSET}/* ${TMPL} ${HT} |
54 | 55 | ||
55 | RSYNCEXCLUDE = \ | 56 | RSYNCEXCLUDE = \ |
56 | "*.ht" \ | 57 | "*.ht" \ |
@@ -60,7 +61,8 @@ RSYNCEXCLUDE = \ | |||
60 | "*.awk" \ | 61 | "*.awk" \ |
61 | "*.bod.txt" \ | 62 | "*.bod.txt" \ |
62 | "tmpl.*" \ | 63 | "tmpl.*" \ |
63 | "tmp/" | 64 | "tmp/" \ |
65 | "tw.txt" | ||
64 | RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude | 66 | RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude |
65 | RSYNC = rsync -auvz --exclude-from="${RSYNCEXCLUDEFILE}" --delete | 67 | RSYNC = rsync -auvz --exclude-from="${RSYNCEXCLUDEFILE}" --delete |
66 | 68 | ||