create directories during configure
This commit is contained in:
parent
5175864c0e
commit
a7b4af0ae5
18
Makefile
18
Makefile
@ -120,24 +120,14 @@ node_debug_CPPFLAGS = $(subst release,debug,$(NODE_CPPFLAGS))
|
|||||||
libv8 = $(builddir)/libv8.a
|
libv8 = $(builddir)/libv8.a
|
||||||
libv8_g = $(builddir)/libv8_g.a
|
libv8_g = $(builddir)/libv8_g.a
|
||||||
|
|
||||||
dirs = $(builddir)/release/src \
|
|
||||||
$(builddir)/release/deps/libev \
|
|
||||||
$(builddir)/release/deps/libeio \
|
|
||||||
$(builddir)/release/deps/c-ares \
|
|
||||||
$(builddir)/release/deps/http_parser \
|
|
||||||
$(builddir)/release/deps/v8 \
|
|
||||||
$(builddir)/release/lib/pkgconfig
|
|
||||||
debug_dirs = $(subst release,debug,$(dirs))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Rules
|
# Rules
|
||||||
|
|
||||||
all: $(dirs) node
|
all: node
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
all: $(debug_dirs) node_g
|
all: node_g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -149,10 +139,6 @@ node_g: $(builddir)/node_g
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(dirs) $(debug_dirs):
|
|
||||||
mkdir -p $@
|
|
||||||
|
|
||||||
|
|
||||||
# libev
|
# libev
|
||||||
|
|
||||||
$(builddir)/release/deps/libev/%.o: deps/libev/%.c
|
$(builddir)/release/deps/libev/%.o: deps/libev/%.c
|
||||||
|
10
configure.ac
10
configure.ac
@ -58,6 +58,16 @@ AC_CONFIG_HEADERS([build/deps/libeio/config.h:deps/libeio/config.h.in])
|
|||||||
|
|
||||||
AC_CONFIG_FILES(["${config_file}":"${config_in}"])
|
AC_CONFIG_FILES(["${config_file}":"${config_in}"])
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p build/debug/src build/release/src
|
||||||
|
mkdir -p build/debug/deps/libev build/release/deps/libev
|
||||||
|
mkdir -p build/debug/deps/libeio build/release/deps/libeio
|
||||||
|
mkdir -p build/debug/deps/c-ares build/release/deps/c-ares
|
||||||
|
mkdir -p build/debug/deps/http_parser build/release/deps/http_parser
|
||||||
|
mkdir -p build/debug/deps/v8 build/release/deps/v8
|
||||||
|
mkdir -p build/debug/lib/pkgconfig build/release/lib/pkgconfig
|
||||||
|
|
||||||
|
|
||||||
## Output files
|
## Output files
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user