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.
36 ###--------------------------------------------------------------------------
40 noinst_LIBRARIES += libutils.a
44 libutils_a_SOURCES += utils.c
45 libutils_a_SOURCES += utils.h
48 bin_PROGRAMS += chkpath
49 dist_man_MANS += chkpath.1
52 bin_PROGRAMS += tmpdir
53 dist_man_MANS += tmpdir.1
55 ###--------------------------------------------------------------------------
58 ## The library itself.
59 lib_LTLIBRARIES += libcheckpath.la
60 libcheckpath_la_SOURCES =
61 libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
62 libcheckpath_la_LIBADD = $(mLib_LIBS)
63 dist_man_MANS += checkpath.3
64 LDADD += libcheckpath.la
66 libcheckpath_la_SOURCES += checkpath.c
67 include_HEADERS += checkpath.h
69 ## Package description.
70 pkgconfigdir = $(libdir)/pkgconfig
71 pkgconfig_DATA = checkpath.pc
72 CLEANFILES += checkpath.pc
73 EXTRA_DIST += checkpath.pc.in
75 checkpath.pc: checkpath.pc.in Makefile
76 $(AM_V_GEN)$(top_srcdir)/config/confsubst \
77 $(srcdir)/checkpath.pc.in >$@.new \
78 prefix=$(prefix) exec_prefix=$(exec_prefix) \
79 libdir=$(libdir) includedir=$(includedir) \
80 VERSION=$(VERSION) && mv $@.new $@
82 ###--------------------------------------------------------------------------
83 ### Other finishing touches.
87 echo $(VERSION) >$(distdir)/RELEASE
90 EXTRA_DIST += config/auto-version
91 EXTRA_DIST += config/confsubst
93 ## External libraries.
96 ###--------------------------------------------------------------------------
100 EXTRA_DIST += debian/rules
101 EXTRA_DIST += debian/copyright
102 EXTRA_DIST += debian/control
103 EXTRA_DIST += debian/changelog
104 EXTRA_DIST += debian/compat
105 EXTRA_DIST += debian/source/format
108 EXTRA_DIST += debian/libcheckpath1.install
109 EXTRA_DIST += debian/libcheckpath-dev.install
112 EXTRA_DIST += debian/tmpdir.install
113 EXTRA_DIST += debian/chkpath.install
115 ###----- That's all, folks --------------------------------------------------