From f7b30b9fc68d2e055b6e27e0d1d045f4045a58de Mon Sep 17 00:00:00 2001 From: Mateusz Hromada Date: Fri, 5 Jun 2009 00:52:29 +0200 Subject: [PATCH] Improvements on configure script. * config.h has more details about project * configure creates src directory unless it exists --- auto/output/Makefile | 1 - auto/output/config_h | 10 ++++++---- configure | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/auto/output/Makefile b/auto/output/Makefile index a972d89..66f3fe4 100755 --- a/auto/output/Makefile +++ b/auto/output/Makefile @@ -50,7 +50,6 @@ CONFIG_FILES = src/config.h Makefile .PHONY: all all: \$(PROGRAMS) - echo all #make -C app compile .PHONY: help diff --git a/auto/output/config_h b/auto/output/config_h index 18125ad..0a8e8d2 100755 --- a/auto/output/config_h +++ b/auto/output/config_h @@ -4,10 +4,12 @@ cat << EOF > ./src/config.h #ifndef CONFIG_H #define CONFIG_H -#define PROJECT_NAME "$PROJECT_NAME" -#define PROJECT_VERSION "$PROJECT_VERSION" -#define PROJECT_PAGE "$PROJECT_PAGE" -#define PROJECT_MAIL "$PROJECT_MAIL" +#define PROJECT_NAME "$PROJECT_NAME" +#define PROJECT_FULLNAME "$PROJECT_FULLNAME" +#define PROJECT_COPYRIGHT "$PROJECT_COPYRIGHT" +#define PROJECT_VERSION "$PROJECT_VERSION" +#define PROJECT_PAGE "$PROJECT_PAGE" +#define PROJECT_MAIL "$PROJECT_MAIL" #endif /* CONFIG_H */ EOF diff --git a/configure b/configure index 921dbc7..2d8fd39 100755 --- a/configure +++ b/configure @@ -12,6 +12,10 @@ if [ -f ./Makefile ]; then exit fi +if [ ! -d ./src ]; then + mkdir ./src +fi + . ./auto/output/config_h . ./auto/output/Makefile