From ac9a0cd277ee90ea24490787a71cad2c9c0629d6 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 15 Sep 2017 21:16:49 +0200 Subject: [PATCH] Struktur fuer mehrere Sites anlegen --- .gitignore | 3 +++ Makefile | 18 ++++++++++++++++++ README.md | 3 +++ modules => sites/ffhh/modules | 0 site.conf => sites/ffhh/site.conf | 0 site.mk => sites/ffhh/site.mk | 0 6 files changed, 24 insertions(+) create mode 100644 Makefile rename modules => sites/ffhh/modules (100%) rename site.conf => sites/ffhh/site.conf (100%) rename site.mk => sites/ffhh/site.mk (100%) 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