forked from huiqing/percept2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
executable file
·70 lines (52 loc) · 1.84 KB
/
Makefile.in
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
APPNAME = percept2
include vsn.mk
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
LIB_DIR = @ERLANG_INSTALL_LIB_DIR@/$(APPNAME)-$(VERSION)
ERL = "@ERL@"
ERLC = "@ERLC@"
ERL_SRC = $(wildcard src/*.erl)
ERL_OBJ = $(patsubst src/%.erl,ebin/%.beam,$(ERL_SRC))
.PHONY: default all conf erl
default: erl
erl: $(ERL_OBJ)
c:
@cd ./c_src; make; cd ../..
########################################
## Rules
.SUFFIXES: .erl
## Erlang
ebin/%.beam: src/%.erl
$(ERLC) -pa ebin -I include -W -o ebin +debug_info $<
ebin/%.beam: include/percept2.hrl
########################################
clean:
@-rm -f ${ERL_OBJ}
distclean: clean
install: default
@echo "* Installing Percept2"
install -m 775 -d $(LIB_DIR)/ebin
install -m 775 ebin/*.beam $(LIB_DIR)/ebin
install -m 775 ebin/*.app $(LIB_DIR)/ebin
install -m 775 -d $(LIB_DIR)/src
install -m 775 src/*.erl $(LIB_DIR)/src
install -m 775 -d $(LIB_DIR)/include
install -m 775 include/*.hrl $(LIB_DIR)/include
install -m 775 -d $(LIB_DIR)/priv
install -m 775 -d $(LIB_DIR)/priv/fonts
install -m 775 -d $(LIB_DIR)/priv/logs
install -m 775 -d $(LIB_DIR)/priv/server_root/conf
install -m 775 -d $(LIB_DIR)/priv/server_root/css
install -m 775 -d $(LIB_DIR)/priv/server_root/htdocs
install -m 775 -d $(LIB_DIR)/priv/server_root/images
install -m 775 -d $(LIB_DIR)/priv/server_root/scripts
install -m 775 priv/fonts/* $(LIB_DIR)/priv/fonts
install -m 755 priv/server_root/conf/* $(LIB_DIR)/priv/server_root/conf
install -m 755 priv/server_root/css/* $(LIB_DIR)/priv/server_root/css
install -m 755 priv/server_root/htdocs/* $(LIB_DIR)/priv/server_root/htdocs
install -m 755 priv/server_root/images/* $(LIB_DIR)/priv/server_root/images
install -m 755 priv/server_root/scripts/* $(LIB_DIR)/priv/server_root/scripts
@echo
@echo "*** Successfully installed."
@echo