File: Makefile.am

package info (click to toggle)
fmtools 2.0.8
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 220 kB
  • sloc: sh: 2,196; ansic: 687; makefile: 54
file content (64 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download | duplicates (2)
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
AM_CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes

bin_PROGRAMS = fm fmscan
fm_SOURCES = fm.c fmlib.c fmlib.h
fmscan_SOURCES = fmscan.c fmlib.c fmlib.h
dist_man_MANS = fm.1 fmscan.1

EXTRA_DIST = \
	debian/changelog \
	debian/compat \
	debian/control \
	debian/copyright \
	debian/rules \
	debian/source/format \
	INSTALL \
	README

#### The rest of this file is just for the testsuite.  It is just
#### boilerplate from the Autoconf manual describing how to use
#### Autotest.

# The `:;' works around a Bash 3.2 bug when the output is not writeable.
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
	:;{ \
	  echo '# Signature of the current package.' && \
	  echo 'm4_define([AT_PACKAGE_NAME],' && \
	  echo '  [@PACKAGE_NAME@])' && \
	  echo 'm4_define([AT_PACKAGE_TARNAME],' && \
	  echo '  [@PACKAGE_TARNAME@])' && \
	  echo 'm4_define([AT_PACKAGE_VERSION],' && \
	  echo '  [@PACKAGE_VERSION@])' && \
	  echo 'm4_define([AT_PACKAGE_STRING],' && \
	  echo '  [@PACKAGE_STRING@])' && \
	  echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
	  echo '  [@PACKAGE_BUGREPORT@])'; \
	  echo 'm4_define([AT_PACKAGE_URL],' && \
	  echo '  [@PACKAGE_URL@])'; \
	} >'$(srcdir)/package.m4'

EXTRA_DIST += $(TESTSUITE_AT) $(srcdir)/package.m4 $(TESTSUITE) atlocal.in
DISTCLEANFILES = atconfig
TESTSUITE = $(srcdir)/testsuite
TESTSUITE_AT = \
	$(srcdir)/testsuite.at \
	$(srcdir)/test-fm.at \
	$(srcdir)/test-fmscan.at \
	$(srcdir)/package.m4

check-local: atconfig atlocal $(TESTSUITE)
	$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)

installcheck-local: atconfig atlocal $(TESTSUITE)
	$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
	  $(TESTSUITEFLAGS)

clean-local:
	test ! -f '$(TESTSUITE)' || \
	 $(SHELL) '$(TESTSUITE)' --clean

AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(TESTSUITE_AT)
	$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
	mv $@.tmp $@