-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (33 loc) · 712 Bytes
/
Makefile
File metadata and controls
49 lines (33 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
GHUSER=kfish
PROJECT=dreambuggy
REMOTE=${GHUSER}-${PROJECT}
SOURCE=src/Main.elm
SCRIPT=dreambuggy.js
TARGET=build/${SCRIPT}
DEPLOY=scripts/${SCRIPT}
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
.PHONY: update build pull push clean realclean
all: build
update:
elm-install
build:
elm-make ${SOURCE} --output ${TARGET}
mkdir -p scripts
cp ${TARGET} ${DEPLOY}
test:
elm-test
publish: build
git add -f ${DEPLOY}
git commit -m "Update ${DEPLOY}"
git push --force ${REMOTE} HEAD:gh-pages
git reset --hard HEAD^
pull:
git fetch ${REMOTE}
git merge ${REMOTE}/${BRANCH}
push:
git push ${REMOTE} ${BRANCH}
clean:
rm -rf build
rm -rf elm-stuff/build-artifacts
realclean:
rm -rf elm-stuff/