From 0f5daf8844f29afe57ed4ad9e57e6c1195d09a1d Mon Sep 17 00:00:00 2001 From: losinshi Date: Sun, 24 Sep 2006 21:46:18 +0000 Subject: [PATCH] Makefiles changed git-svn-id: file:///home/jan/tmp/wetterstation/trunk@137 dd492736-c11a-0410-ad51-8c26713eaf7f --- cronjob/chart/Makefile | 25 ++++++++----------------- cronjob/checksensor/Makefile | 22 ++++++---------------- deamon/init/Makefile | 4 ++-- deamon/seriell/Makefile | 22 ++++++---------------- 4 files changed, 22 insertions(+), 51 deletions(-) diff --git a/cronjob/chart/Makefile b/cronjob/chart/Makefile index 8e1922f..d0b4869 100644 --- a/cronjob/chart/Makefile +++ b/cronjob/chart/Makefile @@ -82,25 +82,16 @@ debug: # Installieren install: @ echo "kopiere $(BIN_NAME) nach $(DESTDIR)$(INSTDIR)" - @ mkdir -p $(DESTDIR)$(INSTDIR); \ - cp $(BIN_NAME) $(DESTDIR)$(INSTDIR) -# @ echo "setze Rechte auf $(BIN_NAME)" -# @ cd $(DESTDIR)$(INSTDIR); \ -# chmod 755 $(BIN_NAME); \ -# chgrp $(INSTGRP) $(BIN_NAME); \ -# chown $(INSTUSR) $(BIN_NAME) + @ install -d $(DESTDIR)$(INSTDIR); + @ install $(BIN_NAME) $(DESTDIR)$(INSTDIR) @ echo "kopiere $(CONF_NAME) nach $(DESTDIR)$(CONFDIR)" - @ mkdir -p $(DESTDIR)$(CONFDIR); \ - cp $(CONF_NAME) $(DESTDIR)$(CONFDIR) + @ install -d $(DESTDIR)$(CONFDIR); + @ install -m644 $(CONF_NAME) $(DESTDIR)$(CONFDIR) @ echo "Lege Verzeichnis fuer Subconfigs an und kopiere Beispiel-Configs" - @ cp -r image_conf $(DESTDIR)$(CONFDIR) -# @ echo "setze Rechte auf $(CONF_NAME)" -# @ cd $(DESTDIR)$(CONFDIR); \ -# chmod 755 $(CONF_NAME); \ -# chgrp $(CONFGRP) $(CONF_NAME); \ -# chown $(CONFUSR) $(CONF_NAME) - @ mkdir -p $(DESTDIR)$(DOCDIR) - @ cp COPYING $(DESTDIR)$(DOCDIR) + @ install -d $(DESTDIR)$(CONFDIR)/image_conf; + @ install -m644 image_conf/* $(DESTDIR)$(CONFDIR)/image_conf + @ install -d $(DESTDIR)$(DOCDIR) + @ install COPYING $(DESTDIR)$(DOCDIR) # Aufräumnen (alle Object-Files löschen) diff --git a/cronjob/checksensor/Makefile b/cronjob/checksensor/Makefile index f962fad..e55b912 100644 --- a/cronjob/checksensor/Makefile +++ b/cronjob/checksensor/Makefile @@ -46,23 +46,13 @@ debug: # Installieren install: @ echo "kopiere $(BIN_NAME) nach $(DESTDIR)$(INSTDIR)" - @ mkdir -p $(DESTDIR)$(INSTDIR); \ - cp $(BIN_NAME) $(DESTDIR)$(INSTDIR) -# @ echo "setze Rechte auf $(BIN_NAME)" -# @ cd $(DESTDIR)$(INSTDIR); \ -# chmod 755 $(BIN_NAME); \ -# chgrp $(INSTGRP) $(BIN_NAME); \ -# chown $(INSTUSR) $(BIN_NAME) + @ install -d $(DESTDIR)$(INSTDIR); \ + install $(BIN_NAME) $(DESTDIR)$(INSTDIR) @ echo "kopiere $(CONF_NAME) nach $(DESTDIR)$(CONFDIR)" - @ mkdir -p $(DESTDIR)$(CONFDIR); \ - cp $(CONF_NAME) $(DESTDIR)$(CONFDIR) -# @ echo "setze Rechte auf $(CONF_NAME)" -# @ cd $(DESTDIR)$(CONFDIR); \ -# chmod 755 $(CONF_NAME); \ -# chgrp $(CONFGRP) $(CONF_NAME); \ -# chown $(CONFUSR) $(CONF_NAME) - @ mkdir -p $(DESTDIR)$(DOCDIR) - @ cp COPYING $(DESTDIR)$(DOCDIR) + @ install -d $(DESTDIR)$(CONFDIR); \ + install -m644 $(CONF_NAME) $(DESTDIR)$(CONFDIR) + @ install -d $(DESTDIR)$(DOCDIR) + @ install -m644 COPYING $(DESTDIR)$(DOCDIR) # Aufräumnen (alle Object-Files löschen) diff --git a/deamon/init/Makefile b/deamon/init/Makefile index 0f31256..1b73b73 100644 --- a/deamon/init/Makefile +++ b/deamon/init/Makefile @@ -3,5 +3,5 @@ Dir = /etc/init.d/ install: @ echo "kopiere init-Script" - @ mkdir -p $(DESTDIR)$(Dir) - @ cp $(File) $(DESTDIR)$(Dir) + @ install -d $(DESTDIR)$(Dir) + @ install -m744 $(File) $(DESTDIR)$(Dir) diff --git a/deamon/seriell/Makefile b/deamon/seriell/Makefile index 8543f5f..509519a 100644 --- a/deamon/seriell/Makefile +++ b/deamon/seriell/Makefile @@ -53,23 +53,13 @@ nolog: # Installieren install: @ echo "kopiere $(BIN_NAME) nach $(DESTDIR)$(INSTDIR)" - @ mkdir -p $(DESTDIR)$(INSTDIR); \ - cp $(BIN_NAME) $(DESTDIR)$(INSTDIR) -# @ echo "setze Rechte auf $(BIN_NAME)" -# @ cd $(DESTDIR)$(INSTDIR); \ -# chmod 755 $(BIN_NAME); \ -# chgrp $(INSTGRP) $(BIN_NAME); \ -# chown $(INSTUSR) $(BIN_NAME) + @ install -d $(DESTDIR)$(INSTDIR); \ + install $(BIN_NAME) $(DESTDIR)$(INSTDIR) @ echo "kopiere $(CONF_NAME) nach $(DESTDIR)$(CONFDIR)" - @ mkdir -p $(DESTDIR)$(CONFDIR); \ - cp $(CONF_NAME) $(DESTDIR)$(CONFDIR) -# @ echo "setze Rechte auf $(CONF_NAME)" -# @ cd $(DESTDIR)$(CONFDIR); \ -# chmod 755 $(CONF_NAME); \ -# chgrp $(CONFGRP) $(CONF_NAME); \ -# chown $(CONFUSR) $(CONF_NAME) - @ mkdir -p $(DESTDIR)$(DOCDIR) - @ cp COPYING $(DESTDIR)$(DOCDIR) + @ install -d $(DESTDIR)$(CONFDIR); \ + install -m644 $(CONF_NAME) $(DESTDIR)$(CONFDIR) + @ install -d $(DESTDIR)$(DOCDIR) + @ install -m644 COPYING $(DESTDIR)$(DOCDIR) # Aufräumnen (alle Object-Files löschen)