-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
31 lines (25 loc) · 828 Bytes
/
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
LIBDIR=$(shell erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell)
.PHONY: doc
VERSION=0.3.4
all:
mkdir -p ebin
(cd src;$(MAKE))
cp -f src/etap.app ebin/
doc:
(cd src; $(MAKE) doc)
test: all
(cd t;$(MAKE))
(cd t;$(MAKE) test)
clean:
(cd src;$(MAKE) clean)
(cd t;$(MAKE) clean)
rm -rf cover/
package: clean
@mkdir etap-$(VERSION)/ && cp -rf ChangeLog Makefile README.markdown scripts src support t etap-$(VERSION)
@COPYFILE_DISABLE=true tar zcf etap-$(VERSION).tgz etap-$(VERSION)
@rm -rf etap-$(VERSION)/
install:
mkdir -p $(prefix)/$(LIBDIR)/etap-$(VERSION)/ebin
for i in ebin/*.beam; do install $$i $(prefix)/$(LIBDIR)/etap-$(VERSION)/$$i ; done
mkdir -p $(prefix)/$(LIBDIR)/etap-$(VERSION)/include
for i in include/*.hrl; do install $$i $(prefix)/$(LIBDIR)/etap-$(VERSION)/$$i ; done