forked from sigscale/usekeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
26 lines (18 loc) · 810 Bytes
/
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
## Makefile.am
##
## Process this file with automake to produce Makefile.in
SUBDIRS = include ebin doc priv test
.PHONY: release
release: $(PACKAGE_VERSION).tar.gz
$(PACKAGE_VERSION).rel: $(PACKAGE_NAME).rel
cp $(PACKAGE_NAME).rel $(PACKAGE_VERSION).rel
$(PACKAGE_VERSION).tar.gz: $(PACKAGE_VERSION).rel sys.config $(top_builddir)/ebin/$(PACKAGE_NAME).app
$(ERL) -pa ebin -noinput \
-eval "systools:make_script(\"$(PACKAGE_VERSION)\")" \
-eval "systools:make_tar(\"$(PACKAGE_VERSION)\", [{dirs, [include]}])" \
-s init stop
install-data-hook: $(PACKAGE_VERSION).tar.gz
$(MKDIR_P) $(DESTDIR)/$(reldir)
$(INSTALL_DATA) $< $(DESTDIR)/$(reldir)
EXTRA_DIST = $(PACKAGE_VERSION).tar.gz
CLEANFILES = $(PACKAGE_VERSION).rel $(PACKAGE_VERSION).script $(PACKAGE_VERSION).boot $(PACKAGE_VERSION).tar.gz