-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
113 lines (89 loc) · 3.37 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
## Quilt: A Linked Data API web application
##
## Author: Mo McRoberts <[email protected]>
##
## Copyright (c) 2014-2015 BBC
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
ACLOCAL_AMFLAGS = -I m4
DIST_SUBDIRS = m4 libsupport libnegotiate libliquify libkvset \
templates public libquilt engines serialisers \
sample-data docbook-html5 docs
SUBDIRS = libsupport @subdirs@ libnegotiate libliquify libkvset \
templates public libquilt engines serialisers sample-data . docs \
t
EXTRA_DIST = libquilt.pc.in libquilt-uninstalled.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libquilt.pc
noinst_DATA = libquilt-uninstalled.pc.in
doc_DATA = apache2-example.conf
dist_doc_DATA = quilt.conf
AM_CPPFLAGS = @AM_CPPFLAGS@ @fcgi_CFLAGS@ \
-I$(top_builddir)/libquilt -I$(top_srcdir)/libquilt \
-I$(top_builddir)/libsupport -I$(top_srcdir)/libsupport \
-I$(top_builddir)/libnegotiate -I$(top_srcdir)/libnegotiate \
-I$(top_builddir)/libkvset -I$(top_srcdir)/libkvset
bin_PROGRAMS = quilt
quilt_SOURCES = p_cli.h cli.c
quilt_LDFLAGS = -R$(libdir)
quilt_LDADD = \
libquilt/libquilt.la \
libsupport/libsupport.la \
libnegotiate/libnegotiate.la \
libkvset/libkvset.la \
@LIBURI_LOCAL_LIBS@ @LIBURI_LIBS@ \
@LIBSPARQLCLIENT_LOCAL_LIBS@ @LIBSPARQLCLIENT_LIBS@ \
@PTHREAD_LOCAL_LIBS@ @PTHREAD_LIBS@
if WITH_FASTCGI
sbin_PROGRAMS = quilt-fcgid
quilt_fcgid_SOURCES = p_fcgi.h fcgi.c
# On some systems, while $(libdir) appears in the system library search list,
# the loader is unable to find libraries installed there without an
# intermediate step being performed. Using -R$(libdir) prevents the issue
# from occurring (by including a DT_RPATH hint, or equivalent in the quiltd
# executable), but packaging scripts may wish to use chrpath(1) or similar
# to strip it out of packaged binaries.
quilt_fcgid_LDFLAGS = -R$(libdir) @fcgi_LDFLAGS@
quilt_fcgid_LDADD = \
libquilt/libquilt.la \
libsupport/libsupport.la \
libnegotiate/libnegotiate.la \
libkvset/libkvset.la \
@fcgi_LIBS@ \
@LIBURI_LOCAL_LIBS@ @LIBURI_LIBS@ \
@LIBSPARQLCLIENT_LOCAL_LIBS@ @LIBSPARQLCLIENT_LIBS@ \
@PTHREAD_LOCAL_LIBS@ @PTHREAD_LIBS@
endif
install-data-hook:
$(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"
test -f "$(DESTDIR)$(sysconfdir)/quilt.conf" || $(INSTALL) -m 644 "$(srcdir)/quilt.conf" "$(DESTDIR)$(sysconfdir)"
BRANCH ?= develop
DOCS_BRANCH ?= gh-pages
DEVELOP_SUBMODULES = m4 libsupport
DOCS_SUBMODULES = docbook-html5 docs
checkout:
@for submod in $(DEVELOP_SUBMODULES) ; do \
echo "+++ Checking out the latest version of $$submod on $(BRANCH)" >&2 ; \
cd $$submod && \
git checkout $(BRANCH) && \
git pull && \
$(MAKE) checkout BRANCH=$(BRANCH) || exit $? && \
cd .. ; \
done
@for submod in $(DOCS_SUBMODULES) ; do \
echo "+++ Checking out the latest version of $$submod on $(DOCS_BRANCH)" >&2 ; \
cd $$submod && \
git checkout $(DOCS_BRANCH) && \
git pull && \
cd .. ; \
done