-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
27 lines (19 loc) · 789 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
26
## Makefile.am
## vim: ts=3
##
## Process this file with automake to produce Makefile.in
SUBDIRS = include src ebin c_src 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
$(ERL) -noinput \
-eval "systools:make_script(\"$(PACKAGE_VERSION)\")" \
-eval "systools:make_tar(\"$(PACKAGE_VERSION)\", [{dirs, [include, mibs]}])" \
-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