-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
66 lines (51 loc) · 1.37 KB
/
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
61
62
63
64
65
66
# Main -*-GNUMakefile-*- for Building HACS distribution.
.PHONY: all all-debug install install-support clean realclean gitclean
all ::
all-debug ::
install ::
install-support ::
clean :: ; rm -f *.tmp *~ ./#* *.log *~
realclean :: clean
gitclean :: realclean
# Set default install directories.
ifndef prefix
prefix=$(shell echo $$HOME)/.hacs
endif
ifndef SHAREJAVA
SHAREJAVA="$(prefix)/share/java/"
endif
ifndef ICU4CINCLUDE
ICU4CINCLUDE="$(prefix)/lib/icu4c/include"
endif
ifndef ICU4CDIR
ICU4CDIR="$(prefix)/lib/icu4c/lib"
endif
# Targets propagate to subdirectories...
all install clean realclean gitclean ::
$(MAKE) -C src $@
$(MAKE) -C doc -I $(abspath src) $@
all-debug install-support ::
$(MAKE) -C src $@
src/% :
$(MAKE) -C src ../$@
samples/% :
$(MAKE) -C samples -I $(abspath src) ../$@
all install :: doc/hacs.pdf
doc/% :
$(MAKE) -C doc -I $(abspath src) $(subst doc/,,$@)
gitclean ::; rm -fr lib
# Quick-install .zip.
$(eval HACS$(shell cat VERSION))
hacs.zip : ziplist
$(MAKE) clean
$(MAKE)
$(MAKE) clean
rm -f *.zip
cd .. && zip -r hacs/hacs-$(HACSVERSION).zip $(addprefix hacs/,$(shell cat ziplist))
ln -fs hacs-$(HACSVERSION).zip hacs.zip
.PHONY : release
release : ziplist
$(MAKE) gitclean
$(MAKE) hacs.zip
scp hacs.zip krisrose.net:/var/www/crsx/hacs-$(HACSVERSION).zip; scp hacs.zip doc/hacs.pdf krisrose.net:/var/www/crsx/
realclean ::; rm -f *.zip