Struktur fuer mehrere Sites anlegen

This commit is contained in:
Daniel Frank 2017-09-15 21:16:49 +02:00
parent 075459e28e
commit ac9a0cd277
6 changed files with 24 additions and 0 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
*~
site.conf
site.mk
modules

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
all: check_site site.mk site.conf modules
.PHONY: check_site
check_site:
if test -z "${SITE}"; then echo Usage: make SITE=ffhh; exit 1; else true; fi
.PHONY: clean
clean:
rm -f site.mk site.conf modules
modules:
cp sites/${SITE}/$@ $@
site.conf:
cp sites/${SITE}/$@ $@
site.mk:
cp sites/${SITE}/$@ $@

View file

@ -3,6 +3,9 @@
git clone https://github.com/freifunk-gluon/gluon.git # Get the official Gluon repository
cd gluon
git clone https://github.com/freifunkhamburg/site-ffhh.git site # Get the Freifunk Hamburg site repository
cd site
make SITE=ffhh
cd ..
make update # Get other repositories used by Gluon
make # Build Gluon