2008-07-01 08:25:40 +02:00
|
|
|
builddir=.build-$(shell hostname)-$(shell gcc -dumpmachine)-$(shell gcc -dumpversion)
|
|
|
|
|
|
|
|
all: cmake
|
|
|
|
@echo "Building…"
|
|
|
|
make -C build
|
|
|
|
|
|
|
|
install: cmake
|
|
|
|
@echo "Installing…"
|
|
|
|
make -C build install
|
|
|
|
|
2008-07-01 17:07:51 +02:00
|
|
|
cmake: build/cmake-stamp
|
|
|
|
build/cmake-stamp: build CMakeLists.txt awesomeConfig.cmake
|
2008-07-01 08:25:40 +02:00
|
|
|
@echo "Running cmake…"
|
|
|
|
cd ${builddir} && cmake "$@" ..
|
2008-07-01 17:07:51 +02:00
|
|
|
touch ${builddir}/cmake-stamp
|
2008-07-01 08:25:40 +02:00
|
|
|
|
2008-07-01 17:07:51 +02:00
|
|
|
build: awesome awesome-client
|
2008-07-01 08:25:40 +02:00
|
|
|
@echo -n "Creating new build directory…"
|
|
|
|
@mkdir -p ${builddir}
|
2008-07-01 17:07:51 +02:00
|
|
|
@ln -s -f ${builddir} build
|
2008-07-01 08:25:40 +02:00
|
|
|
@echo " done"
|
|
|
|
|
2008-07-01 17:07:51 +02:00
|
|
|
awesome:
|
|
|
|
@ln -s -f ${builddir}/awesome awesome
|
2008-07-01 08:25:40 +02:00
|
|
|
|
2008-07-01 17:07:51 +02:00
|
|
|
awesome-client:
|
|
|
|
@ln -s -f ${builddir}/awesome-client awesome-client
|
2008-07-01 08:25:40 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo -n "Cleaning up build directory…"
|
2008-07-01 17:07:51 +02:00
|
|
|
@rm -rf ${builddir} build
|
2008-07-01 08:25:40 +02:00
|
|
|
@echo " done"
|
|
|
|
|
|
|
|
.PHONY: clean
|