put stuff in a Makefile

quickstrom
Brian Hicks 2020-08-25 05:31:13 -05:00
parent eb3bbcd101
commit 9ef23876a3
3 changed files with 7 additions and 1 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
all: dist/index.html
dist/index.html: $(shell find src -type f -name '*.elm') elm.json
@mkdir -p dist
elm make src/Main.elm --output $@

View File

@ -1,5 +1,5 @@
src/** {
prep: mkdir -p dist && elm make src/Main.elm --debug --output dist/index.html
prep: make all
}
dist/** {

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation {
elmPackages.elm-test
# Build Stuff
gnumake
modd
devd
];