| 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 | |
| 26 | bin_PROGRAMS = |
| 27 | lib_LTLIBRARIES = |
| 28 | noinst_LIBRARIES = |
| 29 | include_HEADERS = |
| 30 | dist_man_MANS = |
| 31 | |
| 32 | CLEANFILES = |
| 33 | EXTRA_DIST = |
| 34 | LDADD = |
| 35 | |
| 36 | ###-------------------------------------------------------------------------- |
| 37 | ### Programs. |
| 38 | |
| 39 | ## Common stuff. |
| 40 | noinst_LIBRARIES += libutils.a |
| 41 | libutils_a_SOURCES = |
| 42 | LDADD += libutils.a |
| 43 | |
| 44 | libutils_a_SOURCES += utils.c |
| 45 | libutils_a_SOURCES += utils.h |
| 46 | |
| 47 | ## chkpath |
| 48 | bin_PROGRAMS += chkpath |
| 49 | dist_man_MANS += chkpath.1 |
| 50 | |
| 51 | ## tmpdir |
| 52 | bin_PROGRAMS += tmpdir |
| 53 | dist_man_MANS += tmpdir.1 |
| 54 | |
| 55 | ###-------------------------------------------------------------------------- |
| 56 | ### Library. |
| 57 | |
| 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 |
| 65 | |
| 66 | libcheckpath_la_SOURCES += checkpath.c |
| 67 | include_HEADERS += checkpath.h |
| 68 | |
| 69 | ## Package description. |
| 70 | pkgconfigdir = $(libdir)/pkgconfig |
| 71 | pkgconfig_DATA = checkpath.pc |
| 72 | CLEANFILES += checkpath.pc |
| 73 | EXTRA_DIST += checkpath.pc.in |
| 74 | |
| 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 $@ |
| 81 | |
| 82 | ###-------------------------------------------------------------------------- |
| 83 | ### Other finishing touches. |
| 84 | |
| 85 | ## Version stamp. |
| 86 | dist-hook:: |
| 87 | echo $(VERSION) >$(distdir)/RELEASE |
| 88 | |
| 89 | ## Build tools. |
| 90 | EXTRA_DIST += config/confsubst |
| 91 | |
| 92 | ## External libraries. |
| 93 | LDADD += $(mLib_LIBS) |
| 94 | |
| 95 | ###-------------------------------------------------------------------------- |
| 96 | ### Debian. |
| 97 | |
| 98 | ## Main stuff. |
| 99 | EXTRA_DIST += debian/rules |
| 100 | EXTRA_DIST += debian/copyright |
| 101 | EXTRA_DIST += debian/control |
| 102 | EXTRA_DIST += debian/changelog |
| 103 | EXTRA_DIST += debian/compat |
| 104 | EXTRA_DIST += debian/source/format |
| 105 | |
| 106 | ## Library. |
| 107 | EXTRA_DIST += debian/libcheckpath1.install |
| 108 | EXTRA_DIST += debian/libcheckpath-dev.install |
| 109 | |
| 110 | ## Binaries. |
| 111 | EXTRA_DIST += debian/tmpdir.install |
| 112 | EXTRA_DIST += debian/chkpath.install |
| 113 | |
| 114 | ###----- That's all, folks -------------------------------------------------- |