From fb336d60f186a3e339f286dd39d41568d9f4e6e9 Mon Sep 17 00:00:00 2001 From: losinshi Date: Wed, 27 Sep 2006 12:59:27 +0000 Subject: [PATCH] Makefile git-svn-id: file:///home/jan/tmp/wetterstation/trunk@146 dd492736-c11a-0410-ad51-8c26713eaf7f --- webstuff/frontend/Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/webstuff/frontend/Makefile b/webstuff/frontend/Makefile index da8c993..22bd144 100644 --- a/webstuff/frontend/Makefile +++ b/webstuff/frontend/Makefile @@ -1,2 +1,20 @@ +PROGDIR = $(DESTDIR)/usr/share/weather-frontend +CONFDIR = /etc/weatherstation/ + +DIR=./ + install: - @ echo "noch net implementiert" + @ echo -n "Frontend wird installiert" + @ install -d $(PROGDIR) + for i in $(DIR)/*; do \ + if [ -d $$i ]; then \ + install -d $(PROGDIR)/$$i \ + $(MAKE) DIR=$$i; \ + else \ + install $$i $(PROGDIR)/$(DIR); \ + fi; \ + done + @ install -d $(CONFDIR) + @ install frontend.conf $(CONFDIR) + @ echo "done" +