3 ### Makefile for chkpath
5 ### (c) 1999 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of chkpath.
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.
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.
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.
26 ACLOCAL_AMFLAGS = -Im4
38 ###--------------------------------------------------------------------------
42 noinst_LIBRARIES += libutils.a
46 libutils_a_SOURCES += utils.c
47 libutils_a_SOURCES += utils.h
50 bin_PROGRAMS += chkpath
51 dist_man_MANS += chkpath.1
54 bin_PROGRAMS += tmpdir
55 dist_man_MANS += tmpdir.1
57 ###--------------------------------------------------------------------------
60 ## The library itself.
61 lib_LTLIBRARIES += libcheckpath.la
62 libcheckpath_la_SOURCES =
63 libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
64 libcheckpath_la_LIBADD = $(mLib_LIBS)
65 dist_man_MANS += checkpath.3
66 LDADD += libcheckpath.la
68 libcheckpath_la_SOURCES += checkpath.c
69 include_HEADERS += checkpath.h
71 ## Package description.
72 pkgconfigdir = $(libdir)/pkgconfig
73 pkgconfig_DATA = checkpath.pc
74 CLEANFILES += checkpath.pc
75 EXTRA_DIST += checkpath.pc.in
77 checkpath.pc: checkpath.pc.in Makefile
78 $(AM_V_GEN)$(top_srcdir)/config/confsubst \
79 $(srcdir)/checkpath.pc.in >$@.new \
80 prefix=$(prefix) exec_prefix=$(exec_prefix) \
81 libdir=$(libdir) includedir=$(includedir) \
82 VERSION=$(VERSION) && mv $@.new $@
84 ###--------------------------------------------------------------------------
85 ### Other finishing touches.
89 echo $(VERSION) >$(distdir)/RELEASE
92 EXTRA_DIST += config/auto-version
93 EXTRA_DIST += config/confsubst
95 ## External libraries.
98 ###--------------------------------------------------------------------------
102 EXTRA_DIST += debian/rules
103 EXTRA_DIST += debian/copyright
104 EXTRA_DIST += debian/control
105 EXTRA_DIST += debian/changelog
106 EXTRA_DIST += debian/compat
107 EXTRA_DIST += debian/source/format
110 EXTRA_DIST += debian/libcheckpath1.install
111 EXTRA_DIST += debian/libcheckpath1.shlibs
112 EXTRA_DIST += debian/libcheckpath1.symbols
113 EXTRA_DIST += debian/libcheckpath-dev.install
116 EXTRA_DIST += debian/tmpdir.install
117 EXTRA_DIST += debian/chkpath.install
119 ###----- That's all, folks --------------------------------------------------