Improvements on configure script.

* config.h has more details about project
 * configure creates src directory unless it exists
This commit is contained in:
Mateusz Hromada 2009-06-05 00:52:29 +02:00
parent 8338227cdb
commit f7b30b9fc6
3 changed files with 10 additions and 5 deletions

View File

@ -50,7 +50,6 @@ CONFIG_FILES = src/config.h Makefile
.PHONY: all .PHONY: all
all: \$(PROGRAMS) all: \$(PROGRAMS)
echo all
#make -C app compile #make -C app compile
.PHONY: help .PHONY: help

View File

@ -4,10 +4,12 @@ cat << EOF > ./src/config.h
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#define PROJECT_NAME "$PROJECT_NAME" #define PROJECT_NAME "$PROJECT_NAME"
#define PROJECT_VERSION "$PROJECT_VERSION" #define PROJECT_FULLNAME "$PROJECT_FULLNAME"
#define PROJECT_PAGE "$PROJECT_PAGE" #define PROJECT_COPYRIGHT "$PROJECT_COPYRIGHT"
#define PROJECT_MAIL "$PROJECT_MAIL" #define PROJECT_VERSION "$PROJECT_VERSION"
#define PROJECT_PAGE "$PROJECT_PAGE"
#define PROJECT_MAIL "$PROJECT_MAIL"
#endif /* CONFIG_H */ #endif /* CONFIG_H */
EOF EOF

4
configure vendored
View File

@ -12,6 +12,10 @@ if [ -f ./Makefile ]; then
exit exit
fi fi
if [ ! -d ./src ]; then
mkdir ./src
fi
. ./auto/output/config_h . ./auto/output/config_h
. ./auto/output/Makefile . ./auto/output/Makefile