this repo has no description
at develop 3.2 kB view raw
1# -*-Makefile-*- 2# 3# Main authors: 4# Christian Schulte <schulte@gecode.org> 5# Guido Tack <tack@gecode.org> 6# Grégoire Dooms <dooms@info.ucl.ac.be> 7# 8# 9# Copyright: 10# Christian Schulte, 2005 11# Guido Tack, 2005 12# Grégoire Dooms, 2005 13# 14# This file is part of Gecode, the generic constraint 15# development environment: 16# http://www.gecode.org 17# 18# Permission is hereby granted, free of charge, to any person obtaining 19# a copy of this software and associated documentation files (the 20# "Software"), to deal in the Software without restriction, including 21# without limitation the rights to use, copy, modify, merge, publish, 22# distribute, sublicense, and/or sell copies of the Software, and to 23# permit persons to whom the Software is furnished to do so, subject to 24# the following conditions: 25# 26# The above copyright notice and this permission notice shall be 27# included in all copies or substantial portions of the Software. 28# 29# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 30# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 31# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 32# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 33# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 34# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 35# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 36# 37 38CONTRIBS := $(shell ls -d contribs/* 2>/dev/null ) 39 40contribdirs: 41 @rm -f configure.ac 42 @(echo "dnl This file was generated by Makefile.contribs."; \ 43 echo "dnl Do not edit! Modifications will get lost!"; \ 44 echo "dnl Edit configure.ac.in instead."; echo ""; \ 45 cat configure.ac.in \ 46 ) > configure.ac 47 @for i in $(CONTRIBS); do \ 48 if test ! -d $$i ; then continue ; fi; \ 49 if test -f $$i.dis* ; then \ 50 echo "Skipping disabled contrib $$i"; \ 51 elif test -f $$i/configure -a '(' -f $$i/vti.ac -o -f $$i/shortdesc.ac ')' ; then \ 52 mv configure.ac configure.ac.1; \ 53 sed -e "s|\(dnl @SUBDIRS@\)|AC_CONFIG_SUBDIRS($$i) \1|g" \ 54 configure.ac.1 > configure.ac; \ 55 if test -f $$i/vti.ac; then \ 56 echo "Add variable contrib from $$i"; \ 57 mv configure.ac configure.ac.1; \ 58 (sed -e "s|\(dnl @VTIS@\)|m4_include($$i/vti.ac) \1|g" \ 59 configure.ac.1 > configure.ac); \ 60 else \ 61 mv configure.ac configure.ac.1; \ 62 echo "Add contrib from $$i"; \ 63 DESC="`head -n 1 $$i/shortdesc.ac`"; \ 64 sed -e "s|\(dnl @CONTRIBS@\)|AC_GECODE_ENABLE_CONTRIB($${i#*\/},\"$$DESC\",[]) \1|g" \ 65 configure.ac.1 > configure.ac; \ 66 fi ;\ 67 else \ 68 if test ! -f $$i/configure; then \ 69 echo "Skipping contrib $$i : no configure script"; \ 70 else \ 71 echo "Skipping contrib $$i : no shortdescr.ac or vis.ac file "; \ 72 fi; \ 73 fi;\ 74 done 75 @rm -f configure.ac.1 76 @echo "\n// STATISTICS: support-any\n" >> gecode/support/config.hpp.in 77 @echo Running autoconf on generated configure.ac ... 78 @autoconf 79 @autoheader 80 @mv gecode/support/config.hpp.in config.hpp.in.1 81 @perl misc/fixautoheader.perl < config.hpp.in.1 \ 82 > gecode/support/config.hpp.in 83 @rm config.hpp.in.1 84 @echo done.