Edit

kc3-lang/automake/lib/am/multilib.am

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2003-07-23 21:04:17
    Hash : 36fd44a7
    Message : * automake.in (handle_multilib): Register all-multi. (file_contents_internal): Insert n when concatenating actions from "factored" rules. * lib/config-ml.in: New file, from GCC, including a patch from Ralf Corsepius (see GCC's PR 11526). * lib/symlink-tree.in: New file, from GCC. * lib/Makefile.am (dist_script_DATA): Add config-ml.in and symlink-tree. * lib/am/clean.am (distclean-generic): Do not delete Makefile here... (distclean, maintainer-clean): ... do it here. * lib/am/depend.am (distclean-depend): Likewise, replace by (distclean, maintainer-clean): ... these. * lib/am/multilib.am (all-recursive, install-recursive, mostlyclean-recursive, clean-recursive, distclean-recursive, maintainer-clean-recursive): Remove these rules. (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace by ... (mostlyclean, clean, distclean, maintainer-clean): ... these. (all-am): Remove, done in handle_multilib. (install-am): Replace by ... (install-exec-am): ... this. * tests/Makefile.am (TESTS): Add multlib.test. * tests/multlib.test: New file, based on a test case by Ralf Corsepius

  • lib/am/multilib.am
  • ## automake - create Makefile.in from Makefile.am
    ## Copyright (C) 1998, 2001, 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.
    ## Multilib support variables.
    MULTISRCTOP =
    MULTIBUILDTOP =
    MULTIDIRS =
    MULTISUBDIR =
    MULTIDO = true
    MULTICLEAN = true
    
    all-multi:
    	$(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
    install-multi:
    	$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
    
    .PHONY: all-multi install-multi
    
    
    mostlyclean-multi:
    	$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
    clean-multi:
    	$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
    distclean-multi:
    	$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
    maintainer-clean-multi:
    	$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
    
    .PHONY: mostlyclean-multi clean-multi distclean-multi maintainer-clean-multi
    
    install-exec-am: install-multi
    ## No uninstall rule?
    
    
    ## These cleaning rules are recursive.  They should not be
    ## registered as dependencies of *-am rules.  For instance
    ## otherwise running `make clean' would cause both
    ## clean-multi and mostlyclean-multi to be run, while only
    ## clean-multi is really expected (since clean-multi recursively
    ## call clean, it already do the job of mostlyclean).
    mostlyclean: mostlyclean-multi
    clean: clean-multi
    distclean: distclean-multi
    maintainer-clean: maintainer-clean-multi