From 3017c8b0bd68a786fb429af59a82320db36684a2 Mon Sep 17 00:00:00 2001 From: losinshi Date: Wed, 27 Sep 2006 13:42:07 +0000 Subject: [PATCH] building package git-svn-id: file:///home/jan/tmp/wetterstation/trunk@147 dd492736-c11a-0410-ad51-8c26713eaf7f --- debian/weatherstation-database.docs | 2 +- debian/weatherstation-database.install | 2 +- webstuff/frontend/Makefile | 27 ++++++++++++++++---------- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/debian/weatherstation-database.docs b/debian/weatherstation-database.docs index f293df0..d809c75 100644 --- a/debian/weatherstation-database.docs +++ b/debian/weatherstation-database.docs @@ -1,4 +1,4 @@ debian/weatherstation/usr/share/doc/weatherstation-database/COPYING -debian/weatherstation/usr/share/doc/weatherstation-database/structure.dump.sql +debian/weatherstation/usr/share/doc/weatherstation-database/structure.sql debian/weatherstation/usr/share/doc/weatherstation-database/reademe diff --git a/debian/weatherstation-database.install b/debian/weatherstation-database.install index a644e6a..37cb141 100644 --- a/debian/weatherstation-database.install +++ b/debian/weatherstation-database.install @@ -1,5 +1,5 @@ /usr/share/doc/weatherstation-database /usr/share/doc/weatherstation-database/COPYING -/usr/share/doc/weatherstation-database/structure.dump.sql +/usr/share/doc/weatherstation-database/structure.sql /usr/share/doc/weatherstation-database/reademe diff --git a/webstuff/frontend/Makefile b/webstuff/frontend/Makefile index 22bd144..551db83 100644 --- a/webstuff/frontend/Makefile +++ b/webstuff/frontend/Makefile @@ -1,20 +1,27 @@ PROGDIR = $(DESTDIR)/usr/share/weather-frontend -CONFDIR = /etc/weatherstation/ +CONFDIR = $(DESTDIR)/etc/weatherstation/ DIR=./ install: - @ echo -n "Frontend wird installiert" + @ echo "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 + @ if [ `ls -Al $(DIR) | wc -l` -gt 1 ]; then \ + for i in $(DIR)/*; do \ + if [ -d $$i ]; then \ + echo "lege $(PROGDIR)/$$i an"; \ + install -d $(PROGDIR)/$$i; \ + $(MAKE) DIR=$$i/; \ + else \ + echo "installiere $$i nach $(PROGDIR)/$$i"; \ + install $$i $(PROGDIR)/$(DIR)/; \ + fi; \ + done; \ + fi + @ rm -f $(PROGDIR)/Makefile @ install -d $(CONFDIR) @ install frontend.conf $(CONFDIR) @ echo "done" +clean: + @ echo "nix zu tun"