diff options
Diffstat (limited to '')
-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 = \ |