-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (66 loc) · 1.54 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
67
68
69
70
71
72
73
74
75
76
77
78
ifndef JX_ROOT
ifneq ($(shell ls ../JX/Makefile 2>/dev/null),)
JX_ROOT := ../JX
else ifeq ($(shell uname -o),Darwin)
JX_ROOT := $(shell brew --prefix)
else
JX_ROOT := /usr/local
endif
endif
MAKE_INCLUDE := ${JX_ROOT}/include/jx-af/make
include ${MAKE_INCLUDE}/jx_config
APPS := code_crusader code_medic code_mill
ifneq ($(wildcard ./system-g/.),)
APPS += system-g
endif
ifneq ($(wildcard ./subversion_client/.),)
APPS += subversion_client
endif
.PHONY : all
all:
@for d in ${APPS}; do \
pushd $$d; if ! ${MAKE}; then e=1; fi; popd; \
done; \
if [[ $$e = 1 ]]; then false; fi
.PHONY : Makefiles
Makefiles:
@for d in ${APPS}; do \
pushd $$d; makemake; make Makefiles; popd; \
done
.PHONY : test
test:
@cd code_crusader; ${MAKE} test
.PHONY : install
install:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} install; popd; \
done
.PHONY : release
release:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} release; popd; \
done
.PHONY : push_version
push_version:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} push_version; popd; \
done
.PHONY : update_homebrew_formula
update_homebrew_formula:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} update_homebrew_formula; popd; \
done
.PHONY : tidy
tidy:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} tidy; popd; \
done
.PHONY : clean
clean:
@for d in ${APPS}; do \
pushd $$d; ${MAKE} clean; popd; \
done
.PHONY : test_snap
test_snap:
@chmod a+r snap/gui/*
@snapcraft --debug --shell-after