1 1.1 christos # Make Autoconf library for M4sugar. 2 1.1 christos 3 1.1 christos # Copyright (C) 2001-2002, 2006-2012 Free Software Foundation, Inc. 4 1.1 christos 5 1.1 christos # This program is free software: you can redistribute it and/or modify 6 1.1 christos # it under the terms of the GNU General Public License as published by 7 1.1 christos # the Free Software Foundation, either version 3 of the License, or 8 1.1 christos # (at your option) any later version. 9 1.1 christos 10 1.1 christos # This program is distributed in the hope that it will be useful, 11 1.1 christos # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 1.1 christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 1.1 christos # GNU General Public License for more details. 14 1.1 christos 15 1.1 christos # You should have received a copy of the GNU General Public License 16 1.1 christos # along with this program. If not, see <http://www.gnu.org/licenses/>. 17 1.1 christos 18 1.1 christos m4sugarlibdir = $(pkgdatadir)/m4sugar 19 1.1 christos dist_m4sugarlib_DATA = m4sugar.m4 foreach.m4 m4sh.m4 20 1.1 christos nodist_m4sugarlib_DATA = version.m4 m4sugar.m4f m4sh.m4f 21 1.1 christos CLEANFILES = $(nodist_m4sugarlib_DATA) 22 1.1 christos 23 1.1 christos # Get the release year from ../ChangeLog. 24 1.1 christos RELEASE_YEAR = \ 25 1.1 christos `sed 's/^\([0-9][0-9][0-9][0-9]\).*/\1/;q' $(top_srcdir)/ChangeLog` 26 1.1 christos 27 1.1 christos ## ------------ ## 28 1.1 christos ## version.m4. ## 29 1.1 christos ## ------------ ## 30 1.1 christos 31 1.1 christos # The `:;' works around a redirected compound command bash exit status bug. 32 1.1 christos version.m4: Makefile 33 1.1 christos :;{ \ 34 1.1 christos echo '# This file is part of -*- Autoconf -*-.' && \ 35 1.1 christos echo '# Version of Autoconf.' && \ 36 1.1 christos echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007, 2009' && \ 37 1.1 christos echo '# Free Software Foundation, Inc.' && \ 38 1.1 christos echo &&\ 39 1.1 christos echo 'm4_define([m4_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \ 40 1.1 christos echo 'm4_define([m4_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \ 41 1.1 christos echo 'm4_define([m4_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \ 42 1.1 christos echo 'm4_define([m4_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \ 43 1.1 christos echo 'm4_define([m4_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \ 44 1.1 christos echo 'm4_define([m4_PACKAGE_URL], [$(PACKAGE_URL)])' && \ 45 1.1 christos echo 'm4_define([m4_PACKAGE_YEAR], ['$(RELEASE_YEAR)'])'; \ 46 1.1 christos } > $@-t 47 1.1 christos mv $@-t $@ 48 1.1 christos 49 1.1 christos 50 1.1 christos ## --------------- ## 51 1.1 christos ## Building TAGS. ## 52 1.1 christos ## --------------- ## 53 1.1 christos 54 1.1 christos TAGS_FILES = $(dist_m4sugarlib_DATA) 55 1.1 christos 56 1.1 christos ETAGS_ARGS = $(ETAGS_FOR_AUTOCONF) 57 1.1 christos 58 1.1 christos 59 1.1 christos ## -------- ## 60 1.1 christos ## Checks. ## 61 1.1 christos ## -------- ## 62 1.1 christos 63 1.1 christos check-local: check-forbidden-patterns 64 1.1 christos forbidden_patterns = -e '^_*EOF' -e ' cmp ' 65 1.1 christos forbidden_patterns_files = $(dist_m4sugarlib_DATA) 66 1.1 christos 67 1.1 christos 68 1.1 christos 69 1.1 christos ## ------------------ ## 70 1.1 christos ## The frozen files. ## 71 1.1 christos ## ------------------ ## 72 1.1 christos 73 1.1 christos m4sugar.m4f: $(m4sugar_m4f_dependencies) 74 1.1 christos m4sh.m4f: $(m4sh_m4f_dependencies) 75 1.1 christos include ../freeze.mk 76