forked from libcheck/check
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
58 lines (39 loc) · 1.27 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
## Process this file with automake to produce Makefile.in
## run tests after everything else
SUBDIRS = lib src doc . checkmk tests
## FIXME: maybe we don't need this line
AM_MAKEINFOFLAGS = -I$(top_srcdir)/doc/example
## what to clean
CLEANFILES = *~\
$(PACKAGE)-$(VERSION).tar.gz\
ChangeLog.bak
## what additional things to distribute
include_HEADERS = check_stdint.h
EXTRA_DIST = check.pc.in $(m4data_DATA) xml/check_unittest.xslt \
CMakeLists.txt src/CMakeLists.txt tests/CMakeLists.txt lib/CMakeLists.txt \
cmake
## install docs
docdir = $(datadir)/doc/$(PACKAGE)
doc_DATA = ChangeLog NEWS README COPYING.LESSER
## install check.m4 with AM_PATH_CHECK in it
m4datadir = $(datadir)/aclocal
m4data_DATA = check.m4
## install check.pc
pcdatadir = $(libdir)/pkgconfig
pcdata_DATA = check.pc
DISTCLEANFILES = check_stdint.h
ACLOCAL_AMFLAGS = -I m4
README:
fgrep -v "Build Status]" $(top_srcdir)/README.md > $@
doc/check_html:
$(MAKE) -C doc check_html
doc/doxygen:
$(MAKE) -C doc doxygen
# check we can do a clean build, including docs.
# perhaps we should check for out of date (svn st -u) and modified files.
prereleasecheck: doc/check_html doc/doxygen
-$(MAKE) distclean
autoreconf -i && ./configure \
&& ulimit -c 0 && \
$(MAKE) distcheck
.PHONY: prereleasecheck