File: Makefile.am

package info (click to toggle)
m4 1.4.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,548 kB
  • sloc: ansic: 141,981; sh: 14,996; cpp: 2,200; lisp: 243; makefile: 165; sed: 16
file content (83 lines) | stat: -rw-r--r-- 3,292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
## Makefile.am - template for generating Makefile via Automake
##
## Copyright (C) 2000-2001, 2003-2014, 2016-2017, 2020-2025 Free
## Software Foundation, Inc.
##
## This file is part of GNU M4.
##
## GNU M4 is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## GNU M4 is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <https://www.gnu.org/licenses/>.
##
## Written by Gary V. Vaughan <gary@gnu.org>

SUBDIRS = . examples lib src doc checks po tests

EXTRA_DIST = bootstrap c-boxes.el cfg.mk maint.mk \
	.prev-version .version m4/gnulib-cache.m4 ChangeLog-2014
DISTCLEANFILES = stamp-h
## maintainer-clean should remove as much as possible that ./bootstrap can
## recreate.  In the m4 directory, keep only gnulib-cache.m4.
MAINTAINERCLEANFILES = INSTALL Makefile.in aclocal.m4 \
	config-h.in configure depcomp doc/fdl.texi gendocs.sh install-sh \
	lib/[a-z]* m4/[a-fh-z]* m4/g[a-mo-z]* m4/gnulib-comp.m4 \
	m4/gnulib-tool.m4 missing stamp-h.in

ACLOCAL_AMFLAGS = -I m4
## Enough users install GNU M4 as gm4 that we make sure 'make installcheck'
## will handle that, prior to making a release.
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-changeword --program-prefix=g \
	--enable-gcc-warnings --enable-silent-rules --enable-cxx

# Generate the ChangeLog from git history.
gen_start_date = 2015-01-01
.PHONY: gen-ChangeLog
gen-ChangeLog:
	$(AM_V_GEN)if test -d $(top_srcdir)/.git; then			\
	  log_fix="$(srcdir)/build-aux/git-log-fix";			\
	  test -e "$$log_fix"						\
	    && amend_git_log="--amend=$$log_fix"			\
	    || amend_git_log=;						\
	  $(top_srcdir)/build-aux/gitlog-to-changelog $$amend_git_log	\
	   --since='$(gen_start_date)' > $(distdir)/cl-t		\
	  && rm -f $(distdir)/ChangeLog					\
	  && mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
	fi

# Dummy rule, to pacify automake "gnu" strictness and allow a clean
# bootstrap.  Creates a dummy ChangeLog (unless one is already present,
# as might be the case for users of vc-dwim) that will be overridden
# with a proper one at distribution time.
$(srcdir)/ChangeLog:
	@echo dummy > $@

BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
	echo $(VERSION) > $@-t && mv $@-t $@

# Ensure that the manual page is up-to-date when "make dist" runs.
BUILT_SOURCES += doc/m4.1
doc/m4.1: $(top_srcdir)/src/m4.c
	$(AM_V_GEN)(cd lib && $(MAKE) $(AM_MAKEFLAGS)) \
	  && (cd src && $(MAKE) $(AM_MAKEFLAGS) m4$(EXEEXT)) \
	  && (cd doc && $(MAKE) $(AM_MAKEFLAGS) m4.1)

# Ensure that the checks/*[0-9][0-9][0-9].* files exist when "make dist" runs.
BUILT_SOURCES += checks-files
.PHONY: checks-files
checks-files:
	cd checks && $(MAKE) $(AM_MAKEFLAGS)

# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
dist-hook: gen-ChangeLog
	$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version