]> sourceware.org Git - systemtap.git/blob - Makefile.am
Merge branch 'rth/bpf' into rth/merge
[systemtap.git] / Makefile.am
1 # Makefile.am --- automake input file for systemtap
2 ## process this file with automake to produce Makefile.in
3
4 # we don't maintain a ChangeLog, which makes us non-GNU -> foreign
5 AUTOMAKE_OPTIONS = no-dist foreign
6
7 pkglibexecdir = ${libexecdir}/${PACKAGE}
8 oldincludedir = ${includedir}/sys
9
10 AM_CPPFLAGS = -DBINDIR='"$(bindir)"' \
11 -DSYSCONFDIR='"$(sysconfdir)"' \
12 -DPKGDATADIR='"$(pkgdatadir)"' \
13 -DPKGLIBDIR='"$(pkglibexecdir)"' \
14 -DLOCALEDIR='"$(localedir)"' \
15 -DDOCDIR='"$(docdir)"' \
16 -DPYEXECDIR='"$(pyexecdir)"' \
17 -DPY3EXECDIR='"$(py3execdir)"' \
18 -I$(srcdir)/includes -I$(builddir)/includes/sys
19
20 AM_CFLAGS = -D_GNU_SOURCE -fexceptions -Wall -Wextra -Werror -Wunused -Wformat=2 -W
21 AM_CXXFLAGS = -Wall -Wextra -Werror
22
23 bin_SCRIPTS = stap-report
24 pkglibexec_SCRIPTS = stap-env
25 oldinclude_HEADERS = includes/sys/sdt.h includes/sys/sdt-config.h
26
27 bin_PROGRAMS =
28
29 if BUILD_TRANSLATOR
30 bin_PROGRAMS += stap
31 bin_SCRIPTS += dtrace
32
33 pkglibexec_PROGRAMS =
34
35 if HAVE_NSS
36 pkglibexec_PROGRAMS += stap-sign-module stap-authorize-cert
37
38 if BUILD_SERVER
39 pkglibexec_PROGRAMS += stap-serverd stap-gen-cert
40 bin_SCRIPTS += stap-server
41 pkglibexec_SCRIPTS += stap-start-server stap-stop-server
42 endif
43 endif
44
45 stap_SOURCES = main.cxx session.cxx \
46 parse.cxx staptree.cxx elaborate.cxx translate.cxx \
47 tapsets.cxx buildrun.cxx loc2stap.cxx hash.cxx mdfour.c \
48 cache.cxx util.cxx coveragedb.cxx dwarf_wrappers.cxx \
49 tapset-been.cxx tapset-procfs.cxx tapset-timers.cxx tapset-netfilter.cxx \
50 tapset-perfmon.cxx tapset-mark.cxx tapset-itrace.cxx \
51 tapset-utrace.cxx task_finder.cxx dwflpp.cxx rpm_finder.cxx \
52 setupdwfl.cxx remote.cxx privilege.cxx cmdline.cxx \
53 tapset-dynprobe.cxx tapset-method.cxx translator-output.cxx \
54 stapregex.cxx stapregex-tree.cxx stapregex-parse.cxx \
55 stapregex-dfa.cxx stringtable.cxx tapset-python.cxx
56 noinst_HEADERS = sdt_types.h
57 stap_LDADD = @stap_LIBS@ @sqlite3_LIBS@ @LIBINTL@ -lpthread
58 stap_DEPENDENCIES =
59
60 if HAVE_LIBREADLINE
61 stap_SOURCES += interactive.cxx
62 stap_LDADD += @READLINE_LIBS@
63 endif
64
65 if HAVE_LINUX_BPF_H
66 stap_SOURCES += bpf-base.cxx bpf-bitset.cxx bpf-translate.cxx bpf-opt.cxx
67 endif
68
69 if BUILD_VIRT
70 bin_PROGRAMS += stapvirt
71 stapvirt_SOURCES = stapvirt.c
72 stapvirt_CFLAGS = $(AM_CFLAGS)
73 stapvirt_CFLAGS += $(libvirt_CFLAGS) $(libxml2_CFLAGS)
74 stapvirt_LDFLAGS = $(AM_LDFLAGS)
75 stapvirt_LDADD = $(libvirt_LIBS) $(libxml2_LIBS)
76 endif
77
78 endif
79
80 install: all
81 $(MAKE) $(AM_MAKEFLAGS) install-recursive
82
83 BUILT_SOURCES =
84 CLEANFILES =
85
86 # Arrange for git_version.h to be regenerated at every "make".
87 # Code fragment is based upon RadeonHD.am.
88
89 # The stamp file which is never created ensures that git_version.h is updated
90 # before every build. Having git_version.h in foo_SOURCES ensures a recompile
91 # of foo-bar.c if it is newer than the foo-bar.o file. Using noinst_foo_SOURCES
92 # instead of foo_SOURCES prevents shipping git_version.h in dist tarballs,
93 # which may cause false GIT_FOO readings.
94 BUILT_SOURCES += git_version.stamp
95 CLEANFILES += git_version.h
96 GIT_VERSION_CMD = $(SHELL) $(top_srcdir)/git_version.sh
97 git_version.stamp:
98 @if test -f "$(srcdir)/git_version.h"; then \
99 if test -f "git_version.h"; then :; \
100 else \
101 cp "$(srcdir)/git_version.h" "git_version.h"; \
102 fi; \
103 fi
104 $(GIT_VERSION_CMD) -k -s $(top_srcdir) -o git_version.h
105 @if test -s "$(srcdir)/git_version.h"; then \
106 if cmp "$(srcdir)/git_version.h" "git_version.h"; then :; \
107 else \
108 echo "Error: $(srcdir)/git_version.h and git_version.h differ."; \
109 echo " You probably want to remove the former."; \
110 exit 1; \
111 fi; \
112 fi
113
114 git_version.h:
115 $(srcdir)/git_version.sh -k --srcdir $(srcdir) -o git_version.h
116
117 cscope:
118 cd $(srcdir) && \
119 (echo -q ; git ls-files '*.cxx' '*.c' '*.h' | grep -v '^testsuite' ) > cscope.files && \
120 cscope -b -q @DYNINST_CXXFLAGS@
121
122 PHONIES =
123 if BUILD_TRANSLATOR
124 stap_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@
125 stap_CXXFLAGS = $(AM_CXXFLAGS) @PIECXXFLAGS@
126 stap_CPPFLAGS = $(AM_CPPFLAGS) -DSTAP_SDT_V2
127 stap_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@
128
129 if HAVE_AVAHI
130 stap_CXXFLAGS += $(avahi_CFLAGS)
131 stap_CPPFLAGS += $(avahi_CFLAGS)
132 stap_LDADD += $(avahi_LIBS)
133 endif
134
135 if NEED_BASE_CLIENT_CODE
136 stap_SOURCES += csclient.cxx
137 endif
138
139 if HAVE_NSS
140 stap_SOURCES += nsscommon.cxx client-nss.cxx cscommon.cxx
141 stap_CFLAGS += $(nss_CFLAGS) -DSTAP
142 stap_CXXFLAGS += $(nss_CFLAGS)
143 stap_CPPFLAGS += $(nss_CFLAGS)
144 stap_LDADD += $(nss_LIBS)
145
146 install-exec-local: install-scripts
147
148 PHONIES += install-scripts
149 # scripts must be installed before this rule is run
150 install-scripts: install-binSCRIPTS install-pkglibexecSCRIPTS
151 for f in $(bin_SCRIPTS); do \
152 sed -i -e "s,\$${PKGLIBEXECDIR},$(pkglibexecdir)/," $(DESTDIR)$(bindir)/$$f; \
153 done
154 for f in $(pkglibexec_SCRIPTS); do \
155 sed -i -e "/INSTALL-HOOK/d;s,sysconfdir=.*,sysconfdir=$(sysconfdir),;s,pkglibexecdir=.*,pkglibexecdir=$(pkglibexecdir)/,;s,localstatedir=.*,localstatedir=$(localstatedir),;s,\$${PKGLIBEXECDIR},$(pkglibexecdir)/," $(DESTDIR)$(pkglibexecdir)/$$f; \
156 done
157 endif
158
159 if HAVE_HTTP_SUPPORT
160 stap_SOURCES += client-http.cxx
161 stap_LDADD += $(libcurl_LIBS) $(jsonc_LIBS)
162 endif
163
164 if BUILD_ELFUTILS
165 stap_CPPFLAGS += -Iinclude-elfutils
166 stap_LDFLAGS += -Llib-elfutils -Wl,-rpath-link,lib-elfutils \
167 -Wl,--enable-new-dtags,-rpath,$(pkglibdir)
168
169
170 BUILT_SOURCES += stamp-elfutils
171 CLEANFILES += stamp-elfutils
172 stamp-elfutils: config.status
173 $(MAKE) $(AM_MAKEFLAGS) -C build-elfutils all bin_PROGRAMS=
174 for dir in libelf libebl libdw libdwfl backends; do \
175 $(MAKE) $(AM_MAKEFLAGS) -j1 -C build-elfutils/$$dir bin_PROGRAMS= install; \
176 done
177 $(MAKE) $(AM_MAKEFLAGS) -j1 -C build-elfutils install-pkgincludeHEADERS;
178 touch $@
179 stap_DEPENDENCIES += lib-elfutils/libdw.so
180 lib-elfutils/libdw.so: stamp-elfutils ;
181
182 PHONIES += install-elfutils
183 install-elfutils:
184 mkdir -p $(DESTDIR)$(pkglibdir)
185 for file in lib-elfutils/*.so* lib-elfutils/${PACKAGE_NAME}/*.so*; do \
186 $(INSTALL_PROGRAM) $$file $(DESTDIR)$(pkglibdir); \
187 done
188 install-exec-local: install-elfutils
189 endif
190 endif
191
192 CLEANFILES += $(pkglibexec_PROGRAMS)
193
194 if BUILD_TRANSLATOR
195 if HAVE_NSS
196 stap_sign_module_SOURCES = stap-sign-module.cxx nsscommon.cxx util.cxx
197 stap_sign_module_CPPFLAGS = $(AM_CPPFLAGS)
198 stap_sign_module_CXXFLAGS = $(AM_CXXFLAGS) @PIECXXFLAGS@ $(nss_CFLAGS)
199 stap_sign_module_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ $(nss_CFLAGS)
200 stap_sign_module_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@
201 stap_sign_module_LDADD = $(nss_LIBS)
202
203 stap_authorize_cert_SOURCES = stap-authorize-cert.cxx nsscommon.cxx util.cxx
204 stap_authorize_cert_CPPFLAGS = $(AM_CPPFLAGS)
205 stap_authorize_cert_CXXFLAGS = $(AM_CXXFLAGS) @PIECXXFLAGS@ $(nss_CFLAGS)
206 stap_authorize_cert_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ $(nss_CFLAGS)
207 stap_authorize_cert_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@
208 stap_authorize_cert_LDADD = $(nss_LIBS)
209
210 if BUILD_SERVER
211 stap_serverd_SOURCES = stap-serverd.cxx cscommon.cxx util.cxx privilege.cxx nsscommon.cxx cmdline.cxx
212 stap_serverd_CXXFLAGS = $(AM_CXXFLAGS) @PIECXXFLAGS@ $(nss_CFLAGS)
213 stap_serverd_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ $(nss_CFLAGS)
214 stap_serverd_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@
215 stap_serverd_LDADD = $(nss_LIBS) -lpthread
216 if HAVE_AVAHI
217 stap_serverd_CFLAGS += $(avahi_CFLAGS)
218 stap_serverd_CXXFLAGS += $(avahi_CFLAGS)
219 stap_serverd_LDADD += $(avahi_LIBS)
220 endif
221
222 stap_gen_cert_SOURCES = stap-gen-cert.cxx util.cxx nsscommon.cxx
223 stap_gen_cert_CXXFLAGS = $(AM_CXXFLAGS) @PIECXXFLAGS@ $(nss_CFLAGS)
224 stap_gen_cert_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ $(nss_CFLAGS)
225 stap_gen_cert_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@
226 stap_gen_cert_LDADD = $(nss_LIBS)
227 endif
228 endif
229 endif
230
231 # crash(8) extension
232 if BUILD_CRASHMOD
233 STAPLOG=staplog.so
234
235 $(STAPLOG): staplog.c
236 $(CC) $(staplog_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -shared -rdynamic \
237 $(AM_LDFLAGS) $(LDFLAGS) -fPIC -o $@ $<
238 all-local: $(STAPLOG) example_index
239 install-exec-local: $(STAPLOG)
240 $(MKDIR_P) $(DESTDIR)$(pkglibdir)
241 $(INSTALL) $(STAPLOG) $(DESTDIR)$(pkglibdir)
242 else
243 all-local: example_index
244 endif
245
246 # Get extra libs as needed
247 LDADD =
248
249 EXAMPLE_SOURCE_DIR = $(srcdir)/testsuite/systemtap.examples
250 EXAMPLE_META_FILES = $(EXAMPLE_SOURCE_DIR)/*/*.meta
251
252 example_index: $(EXAMPLE_SOURCE_DIR)/index.html
253
254 $(EXAMPLE_SOURCE_DIR)/index.html: $(EXAMPLE_META_FILES) $(EXAMPLE_INDEX_GEN)
255 @echo "The script example index is outdated, run"
256 @echo " cd $(EXAMPLE_SOURCE_DIR) && \\ "
257 @echo " perl examples-index-gen.pl"
258 @echo "to regenerate it."
259
260 install-data-local:
261 (cd $(srcdir)/runtime; for f in *.[ch]; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/$$f; done)
262 if HAVE_DYNINST
263 (cd $(srcdir)/runtime/dyninst; find . \( -name '*.[ch]' \) -print \
264 | while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/dyninst/$$f; done)
265 endif
266 (cd $(srcdir)/runtime/unwind; find . \( -name '*.[ch]' \) -print \
267 | while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/unwind/$$f; done)
268 (cd $(srcdir)/runtime/transport; for f in *.[ch]; \
269 do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/transport/$$f; done)
270 (cd $(srcdir)/runtime/linux; for f in *.[ch]; \
271 do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/$$f; done)
272 (cd $(srcdir)/runtime/linux/uprobes; for f in Makefile *.[ch]; \
273 do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/uprobes/$$f; done)
274 (cd $(srcdir)/runtime/linux/uprobes2; for f in *.[ch]; \
275 do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/uprobes2/$$f; done)
276 (cd $(srcdir)/tapset; find . \( -name '*.stp' -o -name '*.stpm' -o -name README \) -print \
277 | while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/tapset/$$f; done)
278 (cd $(srcdir)/testsuite/systemtap.examples; find . -type f -print \
279 | egrep -v 'check.exp|ChangeLog|examples-index-gen.pl|html/.*\.tmpl|metadatabase.dbq$$' \
280 | while read f; do if test -x $$f; then \
281 i_cmd="$(INSTALL_PROGRAM)"; else \
282 i_cmd="$(INSTALL_DATA)"; fi; \
283 $$i_cmd -D $$f $(DESTDIR)$(pkgdatadir)/examples/$$f; done)
284 test -e $(DESTDIR)$(sysconfdir)/systemtap || mkdir -p $(DESTDIR)$(sysconfdir)/systemtap
285 if BUILD_SERVER
286 test -e $(DESTDIR)$(localstatedir)/run/stap-server || mkdir -p $(DESTDIR)$(localstatedir)/run/stap-server
287 test -e $(DESTDIR)$(localstatedir)/log || mkdir -p $(DESTDIR)$(localstatedir)/log
288 endif
289
290
291 TEST_COV_DIR = coverage
292
293 gcov:
294 find . -name '*.gc*' | xargs rm -f
295 $(MAKE) clean CXXFLAGS="-g -fprofile-arcs -ftest-coverage" CFLAGS="-g -fprofile-arcs -ftest-coverage" all install
296 -sudo $(MAKE) installcheck $${RUNTESTFLAGS+RUNTESTFLAGS=$${RUNTESTFLAGS}}
297 for dir in $(SUBDIRS); do \
298 (cd $$dir; gcov *.gcno > SUMMARY.gcov 2>&1 || true); \
299 done
300 find . -name '*.gcov'
301
302 clean-local:
303 rm -rf ${PACKAGE_TARNAME}-*.tar.gz
304 rm -rf ${PACKAGE_TARNAME}-${PACKAGE_VERSION}
305 rm -rf $(TEST_COV_DIR)
306 rm -rf stap.info
307 rm -rf staplog.so
308
309 distclean-local:
310 rm -rf build-elfutils include-elfutils lib-elfutils
311 rm -f doc/beginners/en-US doc/beginners/build/en-US/testsuite
312
313 uninstall-local:
314 rm -rf $(DESTDIR)$(pkgdatadir)
315 rm -rf $(DESTDIR)$(libdir)/$(PACKAGE)
316 -rm -rf $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)
317 @list='$(EXAMPLE_SRC)'; for f in $$list; do p=`basename $$f`; \
318 echo " rm -f '$(EXAMPLE_INSTALL_DIR)/$$p'"; \
319 rm -f "$(EXAMPLE_INSTALL_DIR)/$$p"; \
320 done
321 @list='$(DEMO_SRC)'; for f in $$list; do p=`basename $$f`; \
322 echo " rm -f '$(DEMO_INSTALL_DIR)/$$p'"; \
323 rm -f "$(DEMO_INSTALL_DIR)/$$p"; \
324 done
325 @list='$(SAMPLE_SRC)'; for f in $$list; do p=`basename $$f`; \
326 echo " rm -f '$(SAMPLE_INSTALL_DIR)/$$p'"; \
327 rm -f "$(SAMPLE_INSTALL_DIR)/$$p"; \
328 done
329 rm -rf $(DESTDIR)$(sysconfdir)/systemtap
330 rm -rf $(DESTDIR)$(docdir)/examples
331 if BUILD_SERVER
332 rm -rf $(DESTDIR)$(localstatedir)/run/stap-server
333 rm -f $(DESTDIR)$(localstatedir)/log/stap-server/log
334 endif
335
336 SUBDIRS = . java python stapdyn staprun stapbpf doc man po httpd
337 # NB: the gcov target above uses this to enumarate linked binaries' build directories
338 DIST_SUBDIRS = testsuite $(SUBDIRS)
339 EXTRA_DIST = m4/ChangeLog
340
341 check-local:
342 SRCDIR=`cd $(srcdir); pwd`; \
343 PWD=`pwd`; \
344 $(MAKE) -C testsuite check SYSTEMTAP_RUNTIME=$$SRCDIR/runtime SYSTEMTAP_TAPSET=$$SRCDIR/tapset LD_LIBRARY_PATH=$$LD_LIBRARY_PATH$${LD_LIBRARY_PATH:+:}$$PWD/lib-elfutils:$$PWD/lib-elfutils/systemtap SYSTEMTAP_PATH=$$PWD SYSTEMTAP_INCLUDES=$$PWD/includes RUNTESTFLAGS="$(RUNTESTFLAGS)" PKGLIBDIR="$(pkglibexecdir)";
345
346 installcheck:
347 if test \! -e $(DESTDIR)$(bindir)/stap; then \
348 echo $(DESTDIR)$(bindir)/stap doesn\'t exist, run make install; \
349 exit -1; \
350 fi; \
351 if test $(builddir)/stap -nt $(DESTDIR)$(bindir)/stap; then \
352 echo "$(DESTDIR)$(bindir)/stap is not recent, run make install"; \
353 exit -1; \
354 fi;
355 $(MAKE) -C testsuite installcheck RUNTESTFLAGS="$(RUNTESTFLAGS)"
356
357 installcheck-parallel:
358 if test \! -e $(DESTDIR)$(bindir)/stap; then \
359 echo $(DESTDIR)$(bindir)/stap doesn\'t exist, run make install; \
360 exit -1; \
361 fi; \
362 if test $(builddir)/stap -nt $(DESTDIR)$(bindir)/stap; then \
363 echo "$(DESTDIR)$(bindir)/stap is not recent, run make install"; \
364 exit -1; \
365 fi;
366 $(MAKE) -C testsuite installcheck-parallel RUNTESTFLAGS="$(RUNTESTFLAGS)"
367
368 list-unfinished:
369 if test \! -e $(DESTDIR)$(bindir)/stap; then \
370 echo $(DESTDIR)$(bindir)/stap doesn\'t exist, run make install; \
371 exit -1; \
372 fi; \
373 if test $(builddir)/stap -nt $(DESTDIR)$(bindir)/stap; then \
374 echo "$(DESTDIR)$(bindir)/stap is not recent, run make install"; \
375 exit -1; \
376 fi;
377 $(MAKE) -C testsuite list-unfinished RUNTESTFLAGS="$(RUNTESTFLAGS)"
378
379 PHONIES += runcheck
380 # All the variables are overridden by run-stap, but SYSTEMTAP_RUNTIME
381 # is used by the testsuite scripts themselves.
382 runcheck: testsuite/stap testsuite/dtrace
383 $(MAKE) -C testsuite installcheck RUNTESTFLAGS="$(RUNTESTFLAGS)" \
384 SYSTEMTAP_PATH="`cd testsuite; pwd`" \
385 SYSTEMTAP_RUNTIME="`cd $(srcdir)/runtime; pwd`"
386 testsuite/stap: run-stap
387 (echo '#!/bin/sh'; echo "exec `pwd`/run-stap" '$${1+"$$@"}') > $@.new
388 chmod 555 $@.new
389 mv -f $@.new $@
390 testsuite/dtrace: dtrace
391 (echo '#!/bin/sh'; echo "exec `pwd`/dtrace" '$${1+"$$@"}') > $@.new
392 chmod 555 $@.new
393 mv -f $@.new $@
394
395 PHONIES += update-po
396 update-po:
397 (cd $(srcdir); ls -1d *.c *.cxx *.h staprun/*.c staprun/*.h) \
398 | grep -v loc2c-test.c \
399 | grep -v config.h \
400 | grep -v git_version.h \
401 | grep -v staprun/config.h \
402 | sort > $(srcdir)/po/POTFILES.in
403 $(MAKE) -C po update-po
404 @echo
405 @echo if systemtam.pot is shown as modified ...
406 @echo
407 (cd $(srcdir)/po; git status *.pot)
408 @echo
409 @echo ... then check in with zanata ...
410 @echo
411 @echo % cd $(srcdir)
412 @echo % zanata-cli -B push -s po -t po
413 @echo % zanata-cli -B pull -s po -t po
414 @echo
415 @echo if the .po files are shown as modified ...
416 @echo
417 (cd $(srcdir)/po; git status *.po)
418 @echo
419 @echo ... regenerate just once ...
420 @echo
421 @echo % $(MAKE) -C `pwd` update-po
422
423
424 # Any extra flags, such as:
425 # --define "with_docs 0"
426 # --define "with_bundled_elfutils 1" --define "elfutils_version 0.135"
427 RPMBUILDFLAGS=
428
429 PHONIES += dist-gzip rpm srpm
430
431 PHONIES += uprobes install-uprobes
432 uprobes:
433 $(MAKE) -C $(srcdir)/runtime/uprobes clean default
434 install-uprobes:
435 $(MAKE) -C $(DESTDIR)$(pkgdatadir)/runtime/uprobes clean default
436
437 .PHONY: $(PHONIES)
438
439 dist-gzip:
440 cd $(srcdir); git status | grep working.directory.clean || (echo "You should commit your changes before 'make rpm'.")
441 (cd $(srcdir); git archive --prefix=systemtap-$(VERSION)/ --format=tar HEAD) | gzip > systemtap-$(VERSION).tar.gz
442
443 rpm: dist-gzip
444 if [ `id -u` = 0 ]; then echo NOTE: do not run this as root; exit 1; fi
445 if [ ! -w `rpm --eval %_topdir` ]; then \
446 echo WARNING: you do not have access to `rpm --eval %_topdir`; \
447 echo WARNING: you may receive a permission denied error; \
448 echo WARNING: consider adding \'%_topdir $(HOME)/rpmbuild\' to $(HOME)/.rpmmacros; \
449 fi
450 mkdir -p `rpm --eval %_specdir`
451 mkdir -p `rpm --eval %_srcrpmdir`
452 mkdir -p `rpm --eval %_rpmdir`
453 mkdir -p `rpm --eval %_builddir`
454 mkdir -p `rpm --eval %_buildroot`
455 rpmbuild --define "_sourcedir $(PWD)/" -ta systemtap-$(VERSION).tar.gz $(RPMBUILDFLAGS)
456
457 srpm: dist-gzip
458 mkdir -p `rpm --eval %_srcrpmdir`
459 rpmbuild --define "_sourcedir $(PWD)/" -ts systemtap-$(VERSION).tar.gz $(RPMBUILDFLAGS)
460
461 ACLOCAL_AMFLAGS = -I m4
This page took 0.057761 seconds and 6 git commands to generate.