-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 683 Bytes
/
Makefile
File metadata and controls
43 lines (35 loc) · 683 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
# git init config
# cd config
#
# git submodule add https://github.com/hilbix/gen.git
# git submodule update --init
#
# ln -s gen/Makefile .
#
# ln gen/example.org .
# make
#
# cp example.org example.net
# vim example.net
# make
GEN=gen/gen.sh
.PHONY: love
love: all
.PHONY: all
all: gen
.PHONY: gen
gen:
@[ -f '$(GEN)' ] || $(MAKE) -sC .. $@
'$(GEN)' || { echo; echo " make debug # for better diagnose"; echo; false; } >&2
.PHONY: quiet
quiet:
@[ -f '$(GEN)' ] || $(MAKE) -sC .. $@
QUIET=: '$(GEN)'
.PHONY: compact
compact:
@[ -f '$(GEN)' ] || $(MAKE) -sC .. $@
QUIET=: COMPACT=: '$(GEN)'
.PHONY: debug
debug:
@[ -f '$(GEN)' ] || $(MAKE) -sC .. $@
DEBUG=1 '$(GEN)'