building package

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@147 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi 2006-09-27 13:42:07 +00:00
parent fb336d60f1
commit 3017c8b0bd
3 changed files with 19 additions and 12 deletions

View File

@ -1,4 +1,4 @@
debian/weatherstation/usr/share/doc/weatherstation-database/COPYING 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 debian/weatherstation/usr/share/doc/weatherstation-database/reademe

View File

@ -1,5 +1,5 @@
/usr/share/doc/weatherstation-database /usr/share/doc/weatherstation-database
/usr/share/doc/weatherstation-database/COPYING /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 /usr/share/doc/weatherstation-database/reademe

View File

@ -1,20 +1,27 @@
PROGDIR = $(DESTDIR)/usr/share/weather-frontend PROGDIR = $(DESTDIR)/usr/share/weather-frontend
CONFDIR = /etc/weatherstation/ CONFDIR = $(DESTDIR)/etc/weatherstation/
DIR=./ DIR=./
install: install:
@ echo -n "Frontend wird installiert" @ echo "Frontend wird installiert ..."
@ install -d $(PROGDIR) @ install -d $(PROGDIR)
for i in $(DIR)/*; do \ @ if [ `ls -Al $(DIR) | wc -l` -gt 1 ]; then \
if [ -d $$i ]; then \ for i in $(DIR)/*; do \
install -d $(PROGDIR)/$$i \ if [ -d $$i ]; then \
$(MAKE) DIR=$$i; \ echo "lege $(PROGDIR)/$$i an"; \
else \ install -d $(PROGDIR)/$$i; \
install $$i $(PROGDIR)/$(DIR); \ $(MAKE) DIR=$$i/; \
fi; \ else \
done echo "installiere $$i nach $(PROGDIR)/$$i"; \
install $$i $(PROGDIR)/$(DIR)/; \
fi; \
done; \
fi
@ rm -f $(PROGDIR)/Makefile
@ install -d $(CONFDIR) @ install -d $(CONFDIR)
@ install frontend.conf $(CONFDIR) @ install frontend.conf $(CONFDIR)
@ echo "done" @ echo "done"
clean:
@ echo "nix zu tun"