-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
53 lines (43 loc) · 1.12 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = .
EXTRA_DIST = \
@PACKAGE_TARNAME@.spec \
debian/changelog \
debian/compat \
debian/control \
debian/rules \
debian/source/*
if CUSTOM_HTML
EXTRA_DIST += html
endif
if ENABLE_ADMIN
EXTRA_DIST += admin
endif
MODULE_DATA_DIR = @OXOOL_MODULE_DATA_DIR@/@MODULE_NAME@
# Module config file install path
configdir = @OXOOL_MODULE_CONFIG_DIR@
dist_config_DATA = @MODULE_NAME@.xml
if BUILD_SHARED_LIBRARY
# Module install path
moduledir = @OXOOL_MODULES_DIR@
module_LTLIBRARIES = @MODULE_NAME@.la
@MODULE_NAME@_la_CPPFLAGS = -pthread -I$(abs_top_builddir) $(OXOOL_CFLAGS)
@MODULE_NAME@_la_LDFLAGS = -avoid-version -module $(OXOOL_LIBS) -lPocoDataSQLite
@MODULE_NAME@_la_SOURCES = src/Table2SC.cpp
endif
install-data-local:
if CUSTOM_HTML
$(MKDIR_P) $(DESTDIR)/$(MODULE_DATA_DIR)/html
cp -aR html/. $(DESTDIR)/$(MODULE_DATA_DIR)/html
endif
if ENABLE_ADMIN
$(MKDIR_P) $(DESTDIR)/$(MODULE_DATA_DIR)/admin
cp -aR admin/. $(DESTDIR)/$(MODULE_DATA_DIR)/admin
endif
uninstall-local:
if CUSTOM_HTML
rm -fr $(DESTDIR)/$(MODULE_DATA_DIR)/html
endif
if ENABLE_ADMIN
rm -fr $(DESTDIR)/$(MODULE_DATA_DIR)/admin
endif