forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
204 lines (169 loc) · 5.81 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
NULL =
man_MANS =
BUILT_SOURCES =
EXTRA_DIST = README.md
CLEANFILES = *.js *.min.js *.ok */*.ok */*/*.ok *.html *.css
bin_PROGRAMS =
check_SCRIPTS =
check_PROGRAMS =
noinst_SCRIPTS =
libexec_PROGRAMS =
noinst_PROGRAMS =
sbin_PROGRAMS =
noinst_LIBRARIES =
noinst_DATA =
nodist_noinst_DATA =
TESTS =
dist_systemdunit_DATA =
nodist_systemdunit_DATA =
SUFFIXES = .js .min.js .css .html .min.html .1 .8 .5
V_CHECK = $(V_CHECK_$(V))
V_CHECK_ = $(V_CHECK_$(AM_DEFAULT_VERBOSITY))
V_CHECK_0 = @echo " CHECK " $@;
.js.min.js:
@$(MKDIR_P) $(dir $@)
$(V_CHECK) $(srcdir)/tools/missing $(srcdir)/tools/jshint $<
$(AM_V_GEN) $(srcdir)/tools/missing $(srcdir)/tools/uglifyjs $< --mangle > [email protected] && mv [email protected] $@
.html.min.html:
@$(MKDIR_P) $(dir $@)
$(V_CHECK) $(srcdir)/tools/missing $(srcdir)/tools/jshint --extract=always $<
$(AM_V_GEN) $(srcdir)/tools/missing $(srcdir)/tools/html-minifier --output $@ $<
po/po.%.js: po/%.po
@$(MKDIR_P) $(dir $@)
$(AM_V_GEN) $(srcdir)/tools/missing $(srcdir)/tools/po2json --module $^ $@
ACLOCAL_AMFLAGS = -I tools ${ACLOCAL_FLAGS}
SUBDIRS = . po
DISTCHECK_CONFIGURE_FLAGS= \
--disable-debug \
--disable-coverage \
--disable-silent-rules \
--enable-prefix-only \
$(NULL)
AM_CPPFLAGS = \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-DSRCDIR=\"$(abs_srcdir)\" \
-DBUILDDIR=\"$(abs_builddir)\" \
-DDATADIR=\"$(datadir)\" \
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
-DPACKAGE_LIB_DIR=\""$(libdir)"\" \
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
$(NULL)
LOG_DRIVER = $(top_srcdir)/tools/tap-driver
LOG_COMPILER = $(top_srcdir)/tools/tap-gtester
TEST_EXTENSIONS = .html
HTML_LOG_DRIVER = $(top_srcdir)/tools/tap-driver
if WITH_PHANTOMJS
HTML_LOG_COMPILER = $(top_srcdir)/tools/tap-phantom $(builddir)/test-server
else
HTML_LOG_DRIVER_FLAGS = --missing=phantomjs
endif
VALGRIND_ARGS = --trace-children=no --quiet --error-exitcode=33 \
--suppressions=valgrind-suppressions --gen-suppressions=all \
--num-callers=16 --leak-check=yes --show-leak-kinds=definite \
--errors-for-leak-kinds=definite
VALGRIND_SUPPRESSIONS = \
tools/gcrypt.supp \
tools/glib.supp \
tools/pthread.supp \
tools/travis.supp \
tools/pcp.supp \
tools/unknown.supp \
$(NULL)
valgrind-suppressions: $(VALGRIND_SUPPRESSIONS)
$(AM_V_GEN) cat $^ > $@
check-memory: valgrind-suppressions
$(MAKE) LOG_FLAGS="-- valgrind $(VALGRIND_ARGS)" \
HTML_LOG_DRIVER_FLAGS="--missing=no-phantom-valgrind" \
$(AM_MAKEFLAGS) check
recheck-memory: valgrind-suppressions
$(MAKE) LOG_FLAGS="-- valgrind $(VALGRIND_ARGS)" \
HTML_LOG_DRIVER_FLAGS="--missing=no-phantom-valgrind" \
$(AM_MAKEFLAGS) recheck
SED_SUBST = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
-e 's,[@]user[@],$(COCKPIT_USER),g' \
-e 's,[@]group[@],$(COCKPIT_GROUP),g' \
$(NULL)
GDBUS_CODEGEN = $(top_srcdir)/tools/gdbus-unbreak-codegen
VERIFY_CHECKSUMS = $(top_srcdir)/tools/verify-checksums
testassetsdir = $(datadir)/cockpit-test-assets
testassets_programs =
testassets_data =
testassets_systemdunit_data =
install-test-assets: $(testassets_programs) $(testassets_data) $(testassets_systemdunit_data)
$(MKDIR_P) $(DESTDIR)$(testassetsdir)
$(MKDIR_P) $(DESTDIR)$(systemdunitdir)
for p in $(testassets_programs); do \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(testassetsdir); \
done
cd $(srcdir); for d in $(testassets_data); do $(INSTALL_DATA) -D $$d $(DESTDIR)$(testassetsdir)/$$d; done
for d in $(testassets_systemdunit_data); do $(INSTALL_DATA) $$d $(DESTDIR)$(systemdunitdir); done
ln -sn $(libexecdir)/cockpit-bridge $(DESTDIR)$(testassetsdir)/cockpit-bridge
clean-local:
find $(builddir) -name '*.gc??' -delete
find $(srcdir) -name '*.pyc' -delete
rm -rf mock-archives
uninstall-local:: uninstall-doc-local
@true
LATEST = latest/
install-data-hook::
mkdir -p $(DESTDIR)$(localstatedir)/lib/cockpit
-chgrp wheel $(DESTDIR)$(localstatedir)/lib/cockpit
-chmod 775 $(DESTDIR)$(localstatedir)/lib/cockpit
if ENABLE_DOC
include doc/Makefile-doc.am
include doc/guide/Makefile-guide.am
include doc/man/Makefile-man.am
nodist_noinst_DATA += guide/index.html
install-data-local: guide/index.html
$(MKDIR_P) $(DESTDIR)$(htmldir)
$(INSTALL_DATA) `dirname $<`/* $(DESTDIR)$(htmldir)
uninstall-doc-local:
rm -rf $(DESTDIR)$(htmldir)
upload-doc: guide/index.html
rsync -Hvax guide/./ files.cockpit-project.org:/srv/guide/$(LATEST)./
dist-hook:
@true
distcheck-hook:
@true
else
uninstall-doc-local:
@true
distcheck-hook:
@echo "*** doc must be enabled (ie: --enable-doc) in order to make distcheck"
dist-hook:
@echo "*** doc must be enabled (ie: --enable-doc) in order to make dist"
upload-doc:
@echo "*** doc must be enabled (ie: --enable-doc) in order to make upload-doc"
endif
include pkg/base/Makefile.am
include pkg/docker/Makefile.am
include pkg/kubernetes/Makefile.am
include pkg/playground/Makefile.am
include pkg/server-systemd/Makefile.am
include pkg/shell/Makefile.am
include src/bridge/Makefile.am
include src/common/Makefile-common.am
include src/websocket/Makefile-websocket.am
include tools/Makefile-tools.am
include src/ws/Makefile-ws.am
include src/daemon/Makefile-daemon.am
include src/static/Makefile-static.am
include src/remotectl/Makefile-remotectl.am
include src/reauthorize/Makefile-reauthorize.am
include src/selinux/Makefile-selinux.am