Blame Makefile.am

Packit 5e354d
# Makefile.am - Top level Makefile for npth.
Packit 5e354d
# Copyright (C) 2011 g10 Code GmbH
Packit 5e354d
#
Packit 5e354d
# This file is part of nPth.
Packit 5e354d
#
Packit 5e354d
# nPth is free software; you can redistribute it and/or modify it
Packit 5e354d
# under the terms of the GNU Lesser General Public License as
Packit 5e354d
# published by the Free Software Foundation; either version 2.1 of the
Packit 5e354d
# License, or (at your option) any later version.
Packit 5e354d
#
Packit 5e354d
# nPth is distributed in the hope that it will be useful, but WITHOUT
Packit 5e354d
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit 5e354d
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
Packit 5e354d
# Public License for more details.
Packit 5e354d
#
Packit 5e354d
# You should have received a copy of the GNU Lesser General Public
Packit 5e354d
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit 5e354d
Packit 5e354d
## Process this file with automake to produce Makefile.in
Packit 5e354d
Packit 5e354d
ACLOCAL_AMFLAGS = -I m4
Packit 5e354d
Packit 5e354d
EXTRA_DIST = npth-config.in npth.m4 npth.spec.in autogen.sh autogen.rc HACKING
Packit 5e354d
bin_SCRIPTS = npth-config
Packit 5e354d
m4datadir = $(datadir)/aclocal
Packit 5e354d
m4data_DATA = npth.m4
Packit 5e354d
Packit 5e354d
if RUN_TESTS
Packit 5e354d
tests = tests
Packit 5e354d
else
Packit 5e354d
tests =
Packit 5e354d
endif
Packit 5e354d
Packit 5e354d
if HAVE_W32_SYSTEM
Packit 5e354d
npthdir = w32
Packit 5e354d
else
Packit 5e354d
npthdir = src
Packit 5e354d
endif
Packit 5e354d
Packit 5e354d
SUBDIRS = ${npthdir} ${tests}
Packit 5e354d
Packit 5e354d
# Fix the version of the spec file and create a file named VERSION
Packit 5e354d
# to be used for patch's Prereq: feature.
Packit 5e354d
dist-hook: gen-ChangeLog
Packit 5e354d
	@set -e; \
Packit 5e354d
	sed -e 's/@pkg_version@/$(VERSION)/g' \
Packit 5e354d
	    $(top_srcdir)/npth.spec.in  > $(distdir)/npth.spec
Packit 5e354d
	echo "$(VERSION)" > $(distdir)/VERSION
Packit 5e354d
Packit 5e354d
Packit 5e354d
gen_start_date = 2011-12-01T00:00:00
Packit 5e354d
.PHONY: gen-ChangeLog
Packit 5e354d
gen-ChangeLog:
Packit 5e354d
	if test -d $(top_srcdir)/.git; then				\
Packit 5e354d
	  (cd $(top_srcdir) &&                      			\
Packit 5e354d
	   gitlog-to-changelog						\
Packit 5e354d
	    --append-dot --tear-off					\
Packit 5e354d
	    --amend=build-aux/git-log-fix				\
Packit 5e354d
	    --since=$(gen_start_date) ) > $(distdir)/cl-t;		\
Packit 5e354d
          cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
Packit 5e354d
	  rm -f $(distdir)/ChangeLog;					\
Packit 5e354d
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
Packit 5e354d
	fi