16 lines
328 B
Makefile
16 lines
328 B
Makefile
all: dist
|
|
|
|
dist: dist/index.html $(shell find static -type f)
|
|
cp -r static/* dist
|
|
|
|
dist/index.html: $(shell find src -type f -name '*.elm') elm.json
|
|
@mkdir -p dist
|
|
elm make src/Main.elm --optimize --output $@
|
|
|
|
nix/elm-srcs.nix: elm.json
|
|
elm2nix convert > $@
|
|
|
|
nix/registry.dat: elm.json
|
|
elm2nix snapshot
|
|
mv registry.dat $@
|