Version 1.2.0.
[checkpath] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Makefile for chkpath
4 ###
5 ### (c) 1999 Mark Wooding
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of chkpath.
11 ###
12 ### chkpath is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
16 ###
17 ### chkpath is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
21 ###
22 ### You should have received a copy of the GNU General Public License
23 ### along with chkpath; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 bin_PROGRAMS =
27 lib_LTLIBRARIES =
28 include_HEADERS =
29 dist_man_MANS =
30
31 CLEANFILES =
32 EXTRA_DIST =
33
34 ###--------------------------------------------------------------------------
35 ### Library.
36
37 ## The library itself.
38 lib_LTLIBRARIES += libcheckpath.la
39 libcheckpath_la_SOURCES =
40 libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
41 libcheckpath_la_LIBADD = $(mLib_LIBS)
42 dist_man_MANS += checkpath.3
43
44 libcheckpath_la_SOURCES += checkpath.c
45 include_HEADERS += checkpath.h
46
47 ## Package description.
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = checkpath.pc
50 CLEANFILES += checkpath.pc
51 EXTRA_DIST += checkpath.pc.in
52
53 checkpath.pc: checkpath.pc.in Makefile
54 $(top_srcdir)/config/confsubst $(srcdir)/checkpath.pc.in >$@.new \
55 prefix=$(prefix) exec_prefix=$(exec_prefix) \
56 libdir=$(libdir) includedir=$(includedir) \
57 VERSION=$(VERSION)
58 mv $@.new $@
59
60 ###--------------------------------------------------------------------------
61 ### Programs.
62
63 LDADD = libcheckpath.la $(mLib_LIBS)
64
65 ## chkpath
66 bin_PROGRAMS += chkpath
67 dist_man_MANS += chkpath.1
68
69 ## tmpdir
70 bin_PROGRAMS += tmpdir
71 dist_man_MANS += tmpdir.1
72
73 ###--------------------------------------------------------------------------
74 ### Other finishing touches.
75
76 ## Version stamp.
77 dist-hook::
78 echo $(VERSION) >$(distdir)/RELEASE
79
80 ## Build tools.
81 EXTRA_DIST += config/confsubst
82
83 ###--------------------------------------------------------------------------
84 ### Debian.
85
86 ## Main stuff.
87 EXTRA_DIST += debian/rules
88 EXTRA_DIST += debian/copyright
89 EXTRA_DIST += debian/control
90 EXTRA_DIST += debian/changelog
91
92 ## Library.
93 EXTRA_DIST += debian/libcheckpath1.install
94 EXTRA_DIST += debian/libcheckpath-dev.install
95
96 ## Binaries.
97 EXTRA_DIST += debian/tmpdir.install
98 EXTRA_DIST += debian/chkpath.install
99
100 ###----- That's all, folks --------------------------------------------------