-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
46 lines (37 loc) · 1.16 KB
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
APP_NAME=gofer
SRC = $(shell find src -name "*.coffee" -type f | sort)
LIB = $(SRC:src/%.coffee=lib/%.js)
COFFEE=node_modules/.bin/coffee --js
# ## Usage
usage :
@echo ''
@echo '$(APP_NAME)'
@echo '---------------------------'
@echo ''
@echo 'Core tasks : Description'
@echo '-------------------- : -----------'
@echo 'make all : Clean slate to run tests'
@echo 'make clean : Remove all files generated by make tasks'
@echo 'make setup : Install depenendencies for development'
@echo 'make build : Recompile coffeescript'
@echo ''
@echo 'Additional tasks : Description'
@echo '-------------------- : -----------'
@echo 'make release-patch : Publish patch version bump'
@echo 'make release-minor : Publish minor version bump'
@echo 'make release-major : Publish major version bump'
@echo ''
.PHONY : all setup clean build
all: clean setup
npm test
clean:
rm -rf node_modules
setup:
npm install
build: $(LIB)
@./node_modules/.bin/npub prep
lib/%.js: src/%.coffee
dirname "$@" | xargs mkdir -p
$(COFFEE) <"$<" >"$@"
release-%: clean setup
./node_modules/.bin/npub publish $(subst release-,,$@)