X-Git-Url: https://git.distorted.org.uk/~mdw/checkpath/blobdiff_plain/263d6e0d5b3272ea76ed646258ee945fae8a096f..9c42854ddcd101d7c18dbe762afeed91fca5c477:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 313122b..42e907d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,49 +1,100 @@ -## -*-makefile-*- -## -## $Id: Makefile.am,v 1.6 2004/04/08 01:36:22 mdw Exp $ -## -## Makefile for chkpath -## -## (c) 1999 Mark Wooding -## - -##----- Licensing notice ---------------------------------------------------- -## -## This file is part of chkpath. -## -## chkpath is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## chkpath is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with chkpath; if not, write to the Free Software Foundation, -## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -AUTOMAKE_OPTIONS = foreign - -lib_LTLIBRARIES = libcheckpath.la -libcheckpath_la_LDFLAGS = -version-info 2:0:1 -## Middle number is the patchlevel. Final number is the minor version. The -## difference between the first and last numbers is the major version. -libcheckpath_la_SOURCES = checkpath.c -include_HEADERS = checkpath.h - -bin_SCRIPTS = checkpath-config -bin_PROGRAMS = chkpath tmpdir -man_MANS = chkpath.1 tmpdir.1 checkpath.3 - -EXTRA_DIST = \ - $(man_MANS) \ - debian/control debian/copyright debian/changelog debian/rules - -chkpath_SOURCES = chkpath.c -tmpdir_SOURCES = tmpdir.c -LDADD = libcheckpath.la - -##----- That's all, folks --------------------------------------------------- +### -*-makefile-*- +### +### Makefile for chkpath +### +### (c) 1999 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of chkpath. +### +### chkpath is free software; you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation; either version 2 of the License, or +### (at your option) any later version. +### +### chkpath is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with chkpath; if not, write to the Free Software Foundation, +### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +bin_PROGRAMS = +lib_LTLIBRARIES = +include_HEADERS = +dist_man_MANS = + +CLEANFILES = +EXTRA_DIST = + +###-------------------------------------------------------------------------- +### Library. + +## The library itself. +lib_LTLIBRARIES += libcheckpath.la +libcheckpath_la_SOURCES = +libcheckpath_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) +libcheckpath_la_LIBADD = $(mLib_LIBS) +dist_man_MANS += checkpath.3 + +libcheckpath_la_SOURCES += checkpath.c +include_HEADERS += checkpath.h + +## Package description. +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = checkpath.pc +CLEANFILES += checkpath.pc +EXTRA_DIST += checkpath.pc.in + +checkpath.pc: checkpath.pc.in Makefile + $(top_srcdir)/config/confsubst $(srcdir)/checkpath.pc.in >$@.new \ + prefix=$(prefix) exec_prefix=$(exec_prefix) \ + libdir=$(libdir) includedir=$(includedir) \ + VERSION=$(VERSION) + mv $@.new $@ + +###-------------------------------------------------------------------------- +### Programs. + +LDADD = libcheckpath.la $(mLib_LIBS) + +## chkpath +bin_PROGRAMS += chkpath +dist_man_MANS += chkpath.1 + +## tmpdir +bin_PROGRAMS += tmpdir +dist_man_MANS += tmpdir.1 + +###-------------------------------------------------------------------------- +### Other finishing touches. + +## Version stamp. +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE + +## Build tools. +EXTRA_DIST += config/confsubst + +###-------------------------------------------------------------------------- +### Debian. + +## Main stuff. +EXTRA_DIST += debian/rules +EXTRA_DIST += debian/copyright +EXTRA_DIST += debian/control +EXTRA_DIST += debian/changelog + +## Library. +EXTRA_DIST += debian/libcheckpath1.install +EXTRA_DIST += debian/libcheckpath-dev.install + +## Binaries. +EXTRA_DIST += debian/tmpdir.install +EXTRA_DIST += debian/chkpath.install + +###----- That's all, folks --------------------------------------------------