Imported Upstream version 1.5.7
[platform/upstream/libpipeline.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## Copyright (C) 2010 Colin Watson.
4 ##
5 ## This file is part of libpipeline.
6 ##
7 ## libpipeline is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or (at
10 ## your option) any later version.
11 ##
12 ## libpipeline is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 ## General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with libpipeline; if not, write to the Free Software
19 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
20 ## USA
21
22 SUBDIRS = gl/lib lib man
23 if RUN_TESTS
24 SUBDIRS += tests
25 endif
26
27 dist_noinst_DATA = NEWS.md
28
29 EXTRA_DIST = \
30         .gitignore \
31         ChangeLog-2013 \
32         bootstrap \
33         bootstrap.conf
34
35 # These macro files are imported by gnulib-tool, but at present not used. We
36 # include them in the distribution anyway for maximum consistency.
37 EXTRA_DIST += \
38         gl/m4/math_h.m4
39
40 # Note that autopoint installs into the first directory here. Yes, this
41 # means that it installs into gl/m4, so we always run gnulib-tool after
42 # autopoint, at least for now. See
43 # https://lists.gnu.org/archive/html/bug-gnulib/2009-03/msg00154.html and
44 # thread.
45 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
46
47 dist-hook: gen-ChangeLog
48
49 gen_start_date = 2013-11-30 21:08
50 .PHONY: gen-ChangeLog
51 gen-ChangeLog:
52         $(AM_V_GEN)if test -d .git; then \
53                 $(top_srcdir)/build-aux/gitlog-to-changelog \
54                         --format='%s%n%n%b%n' \
55                         --since="$(gen_start_date)" > $(distdir)/cl-t; \
56                 rm -f $(distdir)/ChangeLog; \
57                 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
58         fi