Version 1.2.0.
[checkpath] / Makefile.am
CommitLineData
9c42854d
MW
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
26bin_PROGRAMS =
27lib_LTLIBRARIES =
28include_HEADERS =
29dist_man_MANS =
30
31CLEANFILES =
32EXTRA_DIST =
33
34###--------------------------------------------------------------------------
35### Library.
36
37## The library itself.
38lib_LTLIBRARIES += libcheckpath.la
39libcheckpath_la_SOURCES =
40libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
41libcheckpath_la_LIBADD = $(mLib_LIBS)
42dist_man_MANS += checkpath.3
43
44libcheckpath_la_SOURCES += checkpath.c
45include_HEADERS += checkpath.h
46
47## Package description.
48pkgconfigdir = $(libdir)/pkgconfig
49pkgconfig_DATA = checkpath.pc
50CLEANFILES += checkpath.pc
51EXTRA_DIST += checkpath.pc.in
52
53checkpath.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
63LDADD = libcheckpath.la $(mLib_LIBS)
64
65## chkpath
66bin_PROGRAMS += chkpath
67dist_man_MANS += chkpath.1
68
69## tmpdir
70bin_PROGRAMS += tmpdir
71dist_man_MANS += tmpdir.1
72
73###--------------------------------------------------------------------------
74### Other finishing touches.
75
76## Version stamp.
77dist-hook::
78 echo $(VERSION) >$(distdir)/RELEASE
79
80## Build tools.
81EXTRA_DIST += config/confsubst
82
83###--------------------------------------------------------------------------
84### Debian.
85
86## Main stuff.
87EXTRA_DIST += debian/rules
88EXTRA_DIST += debian/copyright
89EXTRA_DIST += debian/control
90EXTRA_DIST += debian/changelog
91
92## Library.
93EXTRA_DIST += debian/libcheckpath1.install
94EXTRA_DIST += debian/libcheckpath-dev.install
95
96## Binaries.
97EXTRA_DIST += debian/tmpdir.install
98EXTRA_DIST += debian/chkpath.install
99
100###----- That's all, folks --------------------------------------------------