Skip to content

Commit

Permalink
put stuff in a Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 25, 2020
1 parent eb3bbcd commit 9ef2387
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
@@ -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 $@
2 changes: 1 addition & 1 deletion modd.conf
@@ -1,5 +1,5 @@
src/** {
prep: mkdir -p dist && elm make src/Main.elm --debug --output dist/index.html
prep: make all
}

dist/** {
Expand Down
1 change: 1 addition & 0 deletions shell.nix
Expand Up @@ -18,6 +18,7 @@ stdenv.mkDerivation {
elmPackages.elm-test

# Build Stuff
gnumake
modd
devd
];
Expand Down

0 comments on commit 9ef2387

Please sign in to comment.