Edit

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

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2003-05-17 11:31:57
    Hash : f79ed3e7
    Message : * lib/am/install.am (install, install-exec, install-data, uninstall): Declare conditionally using a if/else/endif block instead of using ?SUBDIRS?-style conditions. The latter fail when %maybe_BUILT_SOURCES% is replaced by several lines. This fixes a bug introduced on 2003-04-06. * tests/bsource.test: New file. * tests/Makefile.am (TESTS): Add bsource.test. Reported by Bruno Haible.

  • 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.
    
    ## -------------------------- ##
    ## Creating the installdirs.  ##
    ## -------------------------- ##
    ?SUBDIRS?.PHONY: installdirs installdirs-am installdirs-recursive
    ?SUBDIRS?installdirs: installdirs-recursive
    ?SUBDIRS?installdirs-am:%installdirs-local%
    ?SUBDIRS??am__installdirs?	$(mkinstalldirs) %am__installdirs%
    
    ?!SUBDIRS?.PHONY: installdirs
    ?!SUBDIRS?installdirs:%installdirs-local%
    ?!SUBDIRS??am__installdirs?	$(mkinstalldirs) %am__installdirs%
    
    
    ## ----------------- ##
    ## Install targets.  ##
    ## ----------------- ##
    
    .PHONY: install install-exec install-data uninstall
    .PHONY: install-exec-am install-data-am uninstall-am
    
    if %?SUBDIRS%
    .PHONY: install-recursive install-exec-recursive install-data-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:
    ## Use double quotes here because we might need to interpolate some
    ## backquotes at runtime.
    	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    	  INSTALL_STRIP_FLAG=-s \
    	  `test -z '$(STRIP)' || \
    	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install