summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-05 19:05:05 -0300
committerEuAndreh <eu@euandre.org>2024-11-05 19:06:42 -0300
commitf9c959b2d8e36460395a425a51d480fac635c5ec (patch)
tree379eb714275b8350af6716b7be08659caa3e2277 /Makefile
parentGenerate dark variation of light SVG icons (diff)
downloadchat.papo.im-f9c959b2d8e36460395a425a51d480fac635c5ec.tar.gz
chat.papo.im-f9c959b2d8e36460395a425a51d480fac635c5ec.tar.xz
Include src/content/images.js in the repositoryHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 11547c6..c171796 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ contents = \
derived-assets = \
- src/content/images.js \
+ src/content/images.js.next \
src/content/papo.exported.js \
src/content/sw.exported.js \
@@ -61,8 +61,9 @@ side-assets = \
## and installation.
all: $(derived-assets)
-src/content/images.js: Makefile deps.mk
- printf 'const IMG_PATHS = [\n' > $@
+
+src/content/images.js.next: Makefile deps.mk
+ printf 'const IMG_PATHS = [\n' > $@
printf '\t"%s",\n' $(img.svg) >> $@
printf '];\n' >> $@
@@ -76,6 +77,10 @@ src/content/papo.exported.js src/content/sw.exported.js:
+.PRECIOUS: src/content/images.js
+src/content/images.js: ALWAYS src/content/images.js.next
+ diff -U10 $@ $*.js.next
+
.SUFFIXES: .js-check
tests/papo.js-check: src/content/papo.exported.js
tests/sw.js-check: src/content/sw.exported.js
@@ -83,6 +88,7 @@ tests/papo.js-check tests/sw.js-check:
node tests/node-driver.js $*.js
check-unit: tests/papo.js-check tests/sw.js-check
+check-unit: src/content/images.js
integration-tests = \