Release 1.2.4.1.
[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 =
caa14ca2 28noinst_LIBRARIES =
9c42854d
MW
29include_HEADERS =
30dist_man_MANS =
31
32CLEANFILES =
33EXTRA_DIST =
caa14ca2
MW
34LDADD =
35
36###--------------------------------------------------------------------------
37### Programs.
38
39## Common stuff.
40noinst_LIBRARIES += libutils.a
41libutils_a_SOURCES =
42LDADD += libutils.a
43
44libutils_a_SOURCES += utils.c
45libutils_a_SOURCES += utils.h
46
47## chkpath
48bin_PROGRAMS += chkpath
49dist_man_MANS += chkpath.1
50
51## tmpdir
52bin_PROGRAMS += tmpdir
53dist_man_MANS += tmpdir.1
9c42854d
MW
54
55###--------------------------------------------------------------------------
56### Library.
57
58## The library itself.
59lib_LTLIBRARIES += libcheckpath.la
60libcheckpath_la_SOURCES =
61libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
62libcheckpath_la_LIBADD = $(mLib_LIBS)
63dist_man_MANS += checkpath.3
caa14ca2 64LDADD += libcheckpath.la
9c42854d
MW
65
66libcheckpath_la_SOURCES += checkpath.c
67include_HEADERS += checkpath.h
68
69## Package description.
70pkgconfigdir = $(libdir)/pkgconfig
71pkgconfig_DATA = checkpath.pc
72CLEANFILES += checkpath.pc
73EXTRA_DIST += checkpath.pc.in
74
75checkpath.pc: checkpath.pc.in Makefile
4e1b5403
MW
76 $(AM_V_GEN)$(top_srcdir)/config/confsubst \
77 $(srcdir)/checkpath.pc.in >$@.new \
9c42854d
MW
78 prefix=$(prefix) exec_prefix=$(exec_prefix) \
79 libdir=$(libdir) includedir=$(includedir) \
4e1b5403 80 VERSION=$(VERSION) && mv $@.new $@
9c42854d
MW
81
82###--------------------------------------------------------------------------
9c42854d
MW
83### Other finishing touches.
84
85## Version stamp.
86dist-hook::
87 echo $(VERSION) >$(distdir)/RELEASE
88
89## Build tools.
90EXTRA_DIST += config/confsubst
91
caa14ca2
MW
92## External libraries.
93LDADD += $(mLib_LIBS)
94
9c42854d
MW
95###--------------------------------------------------------------------------
96### Debian.
97
98## Main stuff.
99EXTRA_DIST += debian/rules
100EXTRA_DIST += debian/copyright
101EXTRA_DIST += debian/control
102EXTRA_DIST += debian/changelog
6bec75fe 103EXTRA_DIST += debian/compat
ca853c6a 104EXTRA_DIST += debian/source/format
9c42854d
MW
105
106## Library.
107EXTRA_DIST += debian/libcheckpath1.install
108EXTRA_DIST += debian/libcheckpath-dev.install
109
110## Binaries.
111EXTRA_DIST += debian/tmpdir.install
112EXTRA_DIST += debian/chkpath.install
113
114###----- That's all, folks --------------------------------------------------