Edit

thodg/libiconv/install-tests/Makefile.in

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2025-06-10 00:55:52
    Hash : e443659f
    Message : build: Implement 'installcheck' target. * install-tests/test-version.c: New file. * install-tests/Makefile.in: New file. * configure.ac (PATH_SEPARATOR, AUGMENT_SHLIBPATH): New variables. (AC_CONFIG_FILES): Add install-tests/Makefile. * Makefile.in (bindir): New variable. (all, mostlyclean, clean, distclean, maintainer-clean, distdir): Recurse into install-tests. (installcheck): New target.

  • install-tests/Makefile.in
  • # Makefile for libiconv/install-tests
    
    #### Start of system configuration section. ####
    
    # Directories used by "make":
    srcdir = @srcdir@
    top_srcdir = @top_srcdir@
    
    # Directories used by "make install":
    prefix = @prefix@
    local_prefix = /usr/local
    includedir = @includedir@
    exec_prefix = @exec_prefix@
    bindir = @bindir@
    libdir = @libdir@
    
    # Programs used by "make installcheck":
    CC = @CC@
    CFLAGS = @CFLAGS@
    CPPFLAGS = @CPPFLAGS@
    LDFLAGS = @LDFLAGS@
    EXEEXT = @EXEEXT@
    RM = rm -f
    @SET_MAKE@
    
    #### End of system configuration section. ####
    
    SHELL = @SHELL@
    
    all :
    
    mostlyclean : clean
    
    clean : force
    	$(RM) test-version test-version$(EXEEXT)
    
    distclean : clean
    	$(RM) Makefile
    
    maintainer-clean : distclean
    
    installcheck :
    	$(CC) -I$(includedir) -L$(libdir) \
    	      $(CPPFLAGS) \
    	      $(CFLAGS) $(LDFLAGS) \
    	      -o test-version $(srcdir)/test-version.c -liconv
    	@AUGMENT_SHLIBPATH@ ./test-version
    	rm -rf test-version test-version$(EXEEXT)
    	PATH='$(bindir)'@PATH_SEPARATOR@"$$PATH"; iconv --version | grep 'GNU libiconv' > /dev/null
    
    # List of source files.
    SOURCE_FILES = \
      Makefile.in \
      test-version.c
    # List of distributed files imported from other packages.
    IMPORTED_FILES =
    # List of distributed files generated by autotools or Makefile.devel.
    GENERATED_FILES =
    # List of distributed files generated by "make".
    DISTRIBUTED_BUILT_FILES =
    # List of distributed files.
    DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
    
    distdir : $(DISTFILES)
    	for file in $(DISTFILES); do \
    	  if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
    	  cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \
    	done
    
    force :