Edit

kc3-lang/automake/m4/Makefile.am

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2003-04-24 18:48:07
    Hash : ab57cf28
    Message : * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS and glob for m4_files (We've got all local m4 files while tracing m4_include's). Diagnose ACLOCAL_M4_SOURCES as obsolete. Distribute aclocal.m4 only at the top-level. (my_glob): Remove. This fixes PR automake/11. (handle_dist): Strip leading `./' from directories. * aclocal.in (add_file): Output 'm4_include([file.m4])' instead of copying local files. (write_aclocal, parse_arguments): Bump copyright date. * configure.in: De not build m4/amversion.m4 from here ... * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here. (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead of amversion.m4. * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test. (TESTS): Remove aclocal2.test. Do not test aclocal.test twice. * tests/aclocal2.test: Delete (pointless). * tests/aclocal5.test: Make sure configure's dependencies are distributed. * tests/acinclude.test: Adjust to search for m4_include. * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep configure instead of aclocal.m4.

  • m4/Makefile.am
  • ## Process this file with automake to create Makefile.in
    
    ## Makefile for Automake m4.
    
    ## Copyright 1996, 1997, 1998, 1999, 2001, 2002, 2003
    ## Free Software Foundation, Inc.
    
    ## This program 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 2, or (at your option)
    ## any later version.
    
    ## This program 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, write to the Free Software
    ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    ## 02111-1307, USA.
    
    m4datadir = $(datadir)/aclocal-$(APIVERSION)
    
    dist_m4data_DATA = \
    as.m4 \
    auxdir.m4 \
    ccstdc.m4 \
    cond.m4 \
    depend.m4 \
    depout.m4 \
    dmalloc.m4 \
    gcj.m4 \
    header.m4 \
    init.m4 \
    install-sh.m4 \
    lead-dot.m4 \
    lex.m4 \
    lispdir.m4 \
    maintainer.m4 \
    make.m4 \
    minuso.m4 \
    missing.m4 \
    multi.m4 \
    obsol-gt.m4 \
    obsol-lt.m4 \
    obsolete.m4 \
    options.m4 \
    protos.m4 \
    python.m4 \
    regex.m4 \
    runlog.m4 \
    sanity.m4 \
    strip.m4
    
    # Use `$(srcdir)' for the benefit of non-GNU makes.
    # Many implementations do not know that `./foo' is the same target as `foo'.
    nodist_m4data_DATA = $(srcdir)/amversion.m4
    DISTCLEANFILES = amversion.m4
    EXTRA_DIST = dirlist
    
    # We build amversion.m4 here, instead of from config.status,
    # because config.status is rerun each time one of configure's
    # dependencies change and amversion.m4 happens to be a configure
    # dependency.  configure and amversion.m4 would be rebuilt in
    # loop otherwise.
    $(srcdir)/amversion.m4: $(srcdir)/amversion.in
    	sed -e 's,[@]VERSION[@],$(VERSION),g' \
    	    -e 's,[@]APIVERSION[@],$(APIVERSION),g' \
    	    $(srcdir)/amversion.in > $@t
    	mv -f $@t $@