diff options
author | EuAndreh <eu@euandre.org> | 2024-11-05 19:05:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-05 19:06:42 -0300 |
commit | f9c959b2d8e36460395a425a51d480fac635c5ec (patch) | |
tree | 379eb714275b8350af6716b7be08659caa3e2277 /Makefile | |
parent | Generate dark variation of light SVG icons (diff) | |
download | chat.papo.im-f9c959b2d8e36460395a425a51d480fac635c5ec.tar.gz chat.papo.im-f9c959b2d8e36460395a425a51d480fac635c5ec.tar.xz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 = \ |