-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
67 lines (63 loc) · 2.04 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS=-I m4
resin_home=@resin_home@
resin_conf=@resin_conf@
resin_root=@resin_root@
resin_init_d=@resin_init_d@
resin_pro=@resin_pro@
LIBEXEC=@LIBEXEC@
all :
(cd modules/c/src; $(MAKE))
if test -r $(resin_pro)/modules/c/src/Makefile; then \
cd $(resin_pro)/modules/c/src; $(MAKE); \
fi
clean :
(cd modules/c/src; $(MAKE) clean)
if test -r $(resin_pro)/modules/c/src/Makefile; then \
cd $(resin_pro)/modules/c/src; $(MAKE) clean; \
fi
- rm -r $(LIBEXEC)
install :
if test $(resin_home) != `pwd`; then \
mkdir -p $(resin_home)/bin; \
mkdir -p $(resin_home)/keys; \
mkdir -p $(resin_home)/licenses; \
mkdir -p $(resin_home)/lib; \
mkdir -p $(resin_home)/$(LIBEXEC); \
cp lib/*.jar $(resin_home)/lib; \
cp bin/* $(resin_home)/bin; \
fi; \
if test $(resin_root) != `pwd`; then \
mkdir -p $(resin_root)/webapps; \
cp -r $(CP_U_FLAG) webapps/* $(resin_root)/webapps; \
mkdir -p $(resin_root)/doc; \
cp -r $(CP_U_FLAG) doc/* $(resin_root)/doc; \
mkdir -p $(resin_log); \
fi; \
if test $(resin_conf) != `pwd`/conf; then \
mkdir -p $(resin_conf); \
cp $(CP_U_FLAG) conf/app-default.xml $(resin_conf)/app-default.xml; \
cp $(CP_U_FLAG) conf/resin.xml $(resin_conf)/resin.xml; \
fi; \
(cd modules/c/src; $(MAKE) install)
if test -r $(resin_pro)/modules/c/src/Makefile; then \
cd $(resin_pro)/modules/c/src; $(MAKE) install; \
fi; \
if test -n "${resin_init_d}"; then \
if test -w "${resin_init_d}"; then \
cp $(CP_U_FLAG) init.d/resin $(resin_init_d); \
chmod +x $(resin_init_d); \
else \
echo ;\
echo ;\
echo "****************************************************************"; \
echo "WARNING: Unable to install ${resin_init_d}"; \
echo " Destination is not writable. Usually, only root has";\
echo " permissions to install this file.";\
echo;\
echo " This file is not required, but is used to start Resin"; \
echo " at boot time.";\
echo "****************************************************************"; \
echo ;\
echo ;\
fi; \
fi;