Build system improvements.
Add missing -f so that ln doesn't complain about target existing. Be sure that the toplevel makefile is silent instead of custom @'s. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b9e8307f60
commit
49466fa385
|
@ -247,7 +247,7 @@ if(GENERATE_LUADOC)
|
|||
file(MAKE_DIRECTORY ${BUILD_DIR}/lib)
|
||||
# setup symlink so everything is in one directory
|
||||
foreach(lua_file ${AWE_LUA_FILES})
|
||||
execute_process(COMMAND ${LN_EXECUTABLE} -s ${lua_file}
|
||||
execute_process(COMMAND ${LN_EXECUTABLE} -s -f ${lua_file}
|
||||
WORKING_DIRECTORY ${BUILD_DIR}/lib)
|
||||
endforeach()
|
||||
endif()
|
||||
|
|
29
Makefile
29
Makefile
|
@ -1,24 +1,31 @@
|
|||
builddir=.build-$(shell hostname)-$(shell gcc -dumpmachine)-$(shell gcc -dumpversion)
|
||||
|
||||
ifeq (,$(VERBOSE))
|
||||
MAKEFLAGS:=$(MAKEFLAGS)s
|
||||
ECHO=echo
|
||||
else
|
||||
ECHO=@:
|
||||
endif
|
||||
|
||||
all: cmake
|
||||
@echo "Building…"
|
||||
make -C build
|
||||
$(ECHO) "Building…"
|
||||
$(MAKE) -C build
|
||||
|
||||
install: cmake
|
||||
@echo "Installing…"
|
||||
make -C build install
|
||||
$(ECHO) "Installing…"
|
||||
$(MAKE) -C build install
|
||||
|
||||
cmake: build/cmake-stamp
|
||||
build/cmake-stamp: build CMakeLists.txt awesomeConfig.cmake
|
||||
@echo "Running cmake…"
|
||||
$(ECHO) "Running cmake…"
|
||||
cd ${builddir} && cmake "$@" ..
|
||||
touch ${builddir}/cmake-stamp
|
||||
|
||||
build: awesome awesome-client
|
||||
@echo -n "Creating new build directory…"
|
||||
@mkdir -p ${builddir}
|
||||
@ln -s -f ${builddir} build
|
||||
@echo " done"
|
||||
$(ECHO) -n "Creating new build directory…"
|
||||
mkdir -p ${builddir}
|
||||
ln -s -f ${builddir} build
|
||||
$(ECHO) " done"
|
||||
|
||||
awesome:
|
||||
@ln -s -f ${builddir}/awesome awesome
|
||||
|
@ -27,8 +34,8 @@ awesome-client:
|
|||
@ln -s -f ${builddir}/awesome-client awesome-client
|
||||
|
||||
clean:
|
||||
@echo -n "Cleaning up build directory…"
|
||||
$(ECHO) -n "Cleaning up build directory…"
|
||||
@rm -rf ${builddir} build
|
||||
@echo " done"
|
||||
$(ECHO) " done"
|
||||
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Reference in New Issue