Edit

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

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2003-11-10 20:55:33
    Hash : 2a8e1b17
    Message : * automake.in (handle_configure): Distribute and define mkinstalldirs only if it is already present in the package. (scan_autoconf_files): Do not require mkinstalldirs. (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs). * lib/am/data.am, lib/am/distdir.am, lib/am/install.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs). * m4/mkdirp.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P. * tests/Makefile.am (TESTS): Remove insh.test. * tests/insh.test: Delete. * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs. * tests/auxdir.test: Install mkinstalldirs. * tests/distdir.test, tests/instman.test, tests/pr2.test: Use $(mkdir_p), not $(mkinstalldirs). * tests/empty.test: Run configure, do not substitute things by hand. * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh as an example, not mkinstalldirs. (Auxiliary Programs) <mkinstalldirs>: Update.

  • lib/am/install.am
  • ## automake - create Makefile.in from Makefile.am
    ## Copyright (C) 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.
    
    ## ----------------------------------------- ##
    ## installdirs -- Creating the installdirs.  ##
    ## ----------------------------------------- ##
    
    
    if %?SUBDIRS%
    .PHONY: installdirs installdirs-am
    RECURSIVE_TARGETS += installdirs-recursive
    installdirs: installdirs-recursive
    installdirs-am:%installdirs-local%
    ?am__installdirs?	$(mkdir_p) %am__installdirs%
    else !%?SUBDIRS%
    .PHONY: installdirs
    installdirs:%installdirs-local%
    ?am__installdirs?	$(mkdir_p) %am__installdirs%
    endif !%?SUBDIRS%
    
    
    ## ----------------- ##
    ## Install targets.  ##
    ## ----------------- ##
    
    .PHONY: install install-exec install-data uninstall
    .PHONY: install-exec-am install-data-am uninstall-am
    
    if %?SUBDIRS%
    RECURSIVE_TARGETS += install-data-recursive install-exec-recursive \
    		     install-recursive uninstall-recursive
    install:%maybe_BUILT_SOURCES% install-recursive
    install-exec: install-exec-recursive
    install-data: install-data-recursive
    uninstall: uninstall-recursive
    else !%?SUBDIRS%
    install:%maybe_BUILT_SOURCES% install-am
    install-exec: install-exec-am
    install-data: install-data-am
    uninstall: uninstall-am
    endif !%?SUBDIRS%
    
    .PHONY: install-am
    install-am: all-am
    	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    
    
    .PHONY: installcheck
    ?SUBDIRS?installcheck: installcheck-recursive
    ?!SUBDIRS?installcheck: installcheck-am
    ?!SUBDIRS?.PHONY: installcheck-am
    ?!SUBDIRS?installcheck-am:
    
    ## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
    ## in subdirectories, so never set it to a value relative to the top
    ## directory.
    .PHONY: install-strip
    install-strip:
    ## Beware that they are two variables used to install programs:
    ##   INSTALL_PROGRAM is used for ordinary *_PROGRAMS
    ##   install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
    ##                                                     creates directories)
    ## It's OK to override both with INSTALL_STRIP_PROGRAM, because
    ## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rational).
    ##
    ## Use double quotes here because we might need to interpolate some
    ## backquotes at runtime.
    	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
    	  `test -z '$(STRIP)' || \
    	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install