Merge branch 'ht/newline-before-EOF' into maint
[shapes.git] / Makefile.am
blobed064f065396e0e946a34cb870366d55bdf3e66d
1 # This file is part of Shapes.
3 # Shapes is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # any later version.
8 # Shapes is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with Shapes.  If not, see <http://www.gnu.org/licenses/>.
16 # Copyright 2008, 2010 Gustaf Hendeby
18 ACLOCAL_AMFLAGS = -I m4
20 if WITH_DOC
21   DOC_DIR = doc
22 endif
23 SUBDIRS                 = source $(DOC_DIR) resources test edit
24 CLEANFILES              = configure-stamp build-stamp
25 BUILT_SOURCES = version_test
27 dist_noinst_DATA        = m4/lib-ld.m4 m4/lib-prefix.m4 m4/lib-link.m4 \
28                           m4/iconv.m4 m4/zlib.m4 \
29                           m4/bison.m4 m4/flex.m4 \
30                           m4/gsl.m4 m4/opt.m4 \
31                           config/config.rpath \
32                           COPYING README VERSION
33 dist_noinst_SCRIPTS     = config/oldtool
35 dist-hook :
36         cp @FLEXLEXER_HEADER@ ${distdir}/tools/include/
38 .PHONY: version_sync
39 version_sync:
40         -sed -e 's/VERSION/$(shell sed "2,$$ d" < VERSION)/' < source/exscripts/exconfig | ex -sC configure.ac
42 version_test : FORCE
43         @if test -x version_test.sh ;\
44         then \
45                 ./version_test.sh ;\
46         fi
48 FORCE :