-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (44 loc) · 917 Bytes
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
#
# Makefile for the `saur` command
#
all: bin/saur tags docs/api
bin/saur:
@mkdir -p bin
@deno install --unstable --allow-net --allow-env --allow-run --allow-write --allow-read --root . --name saur cli.js
dist:
@mkdir -p dist
@git archive -o dist/saur.tar.gz HEAD
tags:
@ctags -R .
docs/api:
@yarn run esdoc
.PHONY: docs/api
node_modules:
@yarn install --check-files
html: docs
.PHONY: html
clean: distclean mostlyclean
.PHONY: clean
mostlyclean:
@rm -rf bin docs/api
.PHONY: mostlyclean
maintainer-clean: clean
@rm -f tags
.PHONY: maintainer-clean
check:
@echo "TODO: figure out how to test this"
.PHONY: check
# fmt:
# @setopt extendedglob; deno fmt ^(node_modules|example)/**/*.js
# .PHONY: fmt
distclean:
@rm -rf dist
.PHONY: distclean
install:
@install bin/saur /usr/local/bin
.PHONY: install
uninstall:
@rm -f /usr/local/bin/saur
.PHONY: uninstall
start:
@cd example; bin/server