File: Makefile.am

package info (click to toggle)
libstatgrab 0.92.1-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,252 kB
  • sloc: ansic: 12,623; sh: 4,364; perl: 467; makefile: 282
file content (62 lines) | stat: -rw-r--r-- 2,125 bytes parent folder | download | duplicates (6)
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
# Makefile for libstatgrab/examples
# https://libstatgrab.org/

noinst_PROGRAMS = $(test_bin) $(test_script)

EXTRA_DIST = run_tests.synopsis.in libstatgrab-test.properties

test_bin = full_stats diff_stats

AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)\
	      -I$(top_srcdir)/src -I$(top_builddir)/src\
	      -I$(top_srcdir)/src/libstatgrab -I$(top_builddir)/src/libstatgrab \
	      -I$(top_srcdir)/tests/testlib \
	       @CLIBFLAGS@

LDADD = $(top_builddir)/src/libstatgrab/libstatgrab.la $(top_builddir)/tests/testlib/libtestlib.a @LINKFLAGS@

$(top_builddir)/src/libstatgrab/libstatgrab.la:
	cd $(top_builddir)/src/libstatgrab && make libstatgrab.la

if TEST_SCRIPTS
full_stats_edit=	$(PERL5) $(srcdir)/../testlib/mk_run_tests.pl \
		-d srcdir="$(abs_srcdir)" \
		-d test-bin="full_stats" \
		-d test-name=full-stats \
		-d test-dir="$(subdir)" \
		-f synopsis=$(srcdir)/run_tests.synopsis.in

diff_stats_edit=	$(PERL5) $(srcdir)/../testlib/mk_run_tests.pl \
		-d srcdir="$(abs_srcdir)" \
		-d test-bin="diff_stats" \
		-d test-name=diff-stats \
		-d test-dir="$(subdir)" \
		-f synopsis=$(srcdir)/run_tests.synopsis.in

test_script = full_stats.t diff_stats.t

full_stats_t_SOURCES = $(srcdir)/../testlib/run_tests.t.in run_tests.synopsis.in

full_stats.t: Makefile $(srcdir)/../testlib/mk_run_tests.pl $(srcdir)/../testlib/run_tests.t.in run_tests.synopsis.in
	rm -f $@ $@.tmp
	srcdir=''; \
	  test -f ../testlib/$@.in || srcdir=$(srcdir)/; \
	  $(full_stats_edit) -i $${srcdir}../testlib/run_tests.t.in >$@.tmp
	chmod +rx $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

diff_stats_t_SOURCES = $(srcdir)/../testlib/run_tests.t.in run_tests.synopsis.in

diff_stats.t: Makefile $(srcdir)/../testlib/mk_run_tests.pl $(srcdir)/../testlib/run_tests.t.in run_tests.synopsis.in
	rm -f $@ $@.tmp
	srcdir=''; \
	  test -f ../testlib/$@.in || srcdir=$(srcdir)/; \
	  $(diff_stats_edit) -i $${srcdir}../testlib/run_tests.t.in >$@.tmp
	chmod +rx $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

test: $(noinst_PROGRAMS)
	$(PERL5) -MApp::Prove -e 'my $$app = App::Prove->new(); $$app->process_args(@ARGV); exit( $$app->run ? 0 : 1 );' .
endif