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" +