Changeset 221


Ignore:
Timestamp:
May 18, 2006 4:06:39 PM (13 years ago)
Author:
andreasw
Message:

changed Config.h behavior

Location:
trunk/Cgl/src
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cgl/src/Makefile.am

    r220 r221  
    5656        CglStored.hpp
    5757
    58 ########################################################################
    59 #     Generating the configure header that is to be distributed        #
    60 ########################################################################
     58#############################################################################
     59# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
     60#############################################################################
    6161
    62 # We don't do anything here yet, since so far nothing important is in the
    63 # config.h file
     62# You only need to adapt the following line
     63ConfigHeader = CglConfig.h
     64
     65install-exec-local:
     66        echo "#ifndef HAVE_CONFIG_H" >bla
     67        echo "#define HAVE_CONFIG_H" >>bla
     68        echo "#endif" >> bla
     69        cat $(srcdir)/$(ConfigHeader) >> bla
     70        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
     71        rm -f bla
     72
     73uninstall-local:
     74        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
  • trunk/Cgl/src/Makefile.in

    r220 r221  
    327327        CglStored.hpp
    328328
     329
     330#############################################################################
     331# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
     332#############################################################################
     333
     334# You only need to adapt the following line
     335ConfigHeader = CglConfig.h
    329336all: all-recursive
    330337
     
    677684install-data-am: install-includeHEADERS
    678685
    679 install-exec-am: install-libLTLIBRARIES
     686install-exec-am: install-exec-local install-libLTLIBRARIES
    680687
    681688install-info: install-info-recursive
     
    704711
    705712uninstall-am: uninstall-includeHEADERS uninstall-info-am \
    706         uninstall-libLTLIBRARIES
     713        uninstall-libLTLIBRARIES uninstall-local
    707714
    708715uninstall-info: uninstall-info-recursive
     
    715722        html-am info info-am install install-am install-data \
    716723        install-data-am install-exec install-exec-am \
    717         install-includeHEADERS install-info install-info-am \
    718         install-libLTLIBRARIES install-man install-strip installcheck \
    719         installcheck-am installdirs installdirs-am maintainer-clean \
    720         maintainer-clean-generic maintainer-clean-recursive \
    721         mostlyclean mostlyclean-compile mostlyclean-generic \
    722         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    723         tags tags-recursive uninstall uninstall-am \
     724        install-exec-local install-includeHEADERS install-info \
     725        install-info-am install-libLTLIBRARIES install-man \
     726        install-strip installcheck installcheck-am installdirs \
     727        installdirs-am maintainer-clean maintainer-clean-generic \
     728        maintainer-clean-recursive mostlyclean mostlyclean-compile \
     729        mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
     730        pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
    724731        uninstall-includeHEADERS uninstall-info-am \
    725         uninstall-libLTLIBRARIES
    726 
    727 
    728 ########################################################################
    729 #     Generating the configure header that is to be distributed        #
    730 ########################################################################
    731 
    732 # We don't do anything here yet, since so far nothing important is in the
    733 # config.h file
     732        uninstall-libLTLIBRARIES uninstall-local
     733
     734
     735install-exec-local:
     736        echo "#ifndef HAVE_CONFIG_H" >bla
     737        echo "#define HAVE_CONFIG_H" >>bla
     738        echo "#endif" >> bla
     739        cat $(srcdir)/$(ConfigHeader) >> bla
     740        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
     741        rm -f bla
     742
     743uninstall-local:
     744        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
    734745# Tell versions [3.59,3.63) of GNU make to not export all variables.
    735746# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.