diff --git a/.gitignore b/.gitignore index b25c15b..865a98f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ *~ +site.conf +site.mk +modules diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5d45c2b --- /dev/null +++ b/Makefile @@ -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}/$@ $@ diff --git a/README.md b/README.md index 2887bb0..570c1e1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/modules b/sites/ffhh/modules similarity index 100% rename from modules rename to sites/ffhh/modules diff --git a/site.conf b/sites/ffhh/site.conf similarity index 100% rename from site.conf rename to sites/ffhh/site.conf diff --git a/site.mk b/sites/ffhh/site.mk similarity index 100% rename from site.mk rename to sites/ffhh/site.mk