[asterisk-commits] mnicholson: branch mnicholson/asttest r248006 - /team/mnicholson/asttest/astt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 19 13:01:49 CST 2010


Author: mnicholson
Date: Fri Feb 19 13:01:45 2010
New Revision: 248006

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=248006
Log:
Added an install target to the Makefile

Modified:
    team/mnicholson/asttest/asttest/Makefile

Modified: team/mnicholson/asttest/asttest/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/mnicholson/asttest/asttest/Makefile?view=diff&rev=248006&r1=248005&r2=248006
==============================================================================
--- team/mnicholson/asttest/asttest/Makefile (original)
+++ team/mnicholson/asttest/asttest/Makefile Fri Feb 19 13:01:45 2010
@@ -19,6 +19,11 @@
 endif
 
 .PHONY: clean dist-clean distclean test check asterisk
+
+INSTALL?=install
+DESTDIR?=
+BINDIR?=/usr/bin
+
 
 LUAFILESYSTEM=luafilesystem-1.4.2
 LUASOCKET=luasocket-2.0.2
@@ -137,6 +142,10 @@
 tools/mkstring: tools/mkstring.c
 	$(CC) -D_GNU_SOURCE -Wall -o $@ $^
 
+install:
+	install -d $(DESTDIR)$(BINDIR)
+	install -m 755 asttest $(DESTDIR)$(BINDIR)
+
 check: test
 tests: test
 test: asttest asterisk




More information about the asterisk-commits mailing list