[PATCH 09/19] Introduce a cache of the configuration

Alberto Mardegan mardy at users.sourceforge.net
Wed Apr 24 23:04:42 PDT 2013


On 04/23/2013 09:48 AM, Thiago Macieira wrote:
> diff --git a/Configure.mk b/Configure.mk
> index f9b9e06..fa04a44 100644
> --- a/Configure.mk
> +++ b/Configure.mk
> @@ -1,5 +1,6 @@
>  # -*- Makefile -*-
>  # This file contains the detection rules
> +all:
>  
>  PKGCONFIG=pkg-config
>  XML2CONFIG=xml2-config
> @@ -8,6 +9,11 @@ QMAKE=qmake
>  MOC=moc
>  UIC=uic
>  
> +CONFIGFILE = config.cache
> +ifeq ($(CONFIGURING),1)
> +
> +# Detect the target system
> +# Ask the compiler what OS it's producing files for
>  UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win|gnu|kfreebsd")
>  
>  # find libdivecomputer
> @@ -110,3 +116,45 @@ ZIPFLAGS = $(strip $(shell $(PKGCONFIG) --cflags libzip 2> /dev/null))
>  
>  LIBSQLITE3 = $(shell $(PKGCONFIG) --libs sqlite3 2> /dev/null)
>  SQLITE3FLAGS = $(strip $(shell $(PKGCONFIG) --cflags sqlite3))
> +
> +# Write the configure file
> +all: configure
> +configure $(CONFIGURE): Configure.mk

$(CONFIGFILE)?

Ciao,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!


More information about the subsurface mailing list