rbrindley: branch 2.0 r4817 - /branches/2.0/Makefile

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 1 17:03:14 CDT 2009


Author: rbrindley
Date: Mon Jun  1 17:03:11 2009
New Revision: 4817

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4817
Log:

- added $(DESTDIR) support in the config: target


Modified:
    branches/2.0/Makefile

Modified: branches/2.0/Makefile
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/Makefile?view=diff&rev=4817&r1=4816&r2=4817
==============================================================================
--- branches/2.0/Makefile (original)
+++ branches/2.0/Makefile Mon Jun  1 17:03:11 2009
@@ -116,9 +116,9 @@
 	@$(MAKE) -C $@
 
 config:
-	@cp /usr/share/doc/asterisk-gui/init.d/rc.asterisk-gui /etc/rc.d/init.d/asterisk-gui
-	@chmod 755 /etc/rc.d/init.d/asterisk-gui
-	@chkconfig --add asterisk-gui
+	@cp init.d/rc.asterisk-gui $(DESTDIR)/etc/rc.d/init.d/asterisk-gui
+	@chmod 755 $(DESTDIR)/etc/rc.d/init.d/asterisk-gui
+	@if [ -z "$(DESTDIR)" ]; then chkconfig --add asterisk-gui; fi
 	@echo " +-------- Asterisk-GUI Config Complete -------+"
 	@echo " + The Asterisk-GUI has been added to your     +"
 	@echo " + services:                                   +"




More information about the asterisk-gui-commits mailing list