Files
site-ffmuc/Makefile
2014-11-15 23:39:33 +01:00

32 lines
748 B
Makefile

GLUON_BUILD_DIR := gluon-build
GLUON_GIT_URL := git://github.com/freifunk-gluon/gluon.git
GLUON_GIT_REF := 08ecab23dec1e43b02fdca4caa86d2b7940b2f12
JOBS ?= $(shell cat /proc/cpuinfo | grep processor | wc -l)
_GIT_DESCRIBE = $(shell git describe --tags 2>&1)
ifneq (,${_GIT_DESCRIBE})
GLUON_RELEASE := ${_GIT_DESCRIBE}
GLUON_BRANCH ?= stable
else
GLUON_BRANCH ?= nightly
endif
all: build
build: gluon-prepare
cd ${GLUON_BUILD_DIR} \
&& make update \
&& make -j ${JOBS} \
&& make manifest
${GLUON_BUILD_DIR}:
git clone ${GLUON_GIT_URL} ${GLUON_BUILD_DIR}
gluon-prepare: ${GLUON_BUILD_DIR}
(cd ${GLUON_BUILD_DIR} && git checkout -q ${GLUON_GIT_REF})
ln -sfT .. ${GLUON_BUILD_DIR}/site
clean:
rm -rf ${GLUON_BUILD_DIR}