]> git.ipfire.org Git - people/ms/mstpd.git/commitdiff
[by Michael Tremer] Add install target to Makefile.
authordv1tas <dv1tas@fbe50366-0c72-4402-a84b-5d246361dba7>
Sat, 12 Nov 2011 19:10:47 +0000 (19:10 +0000)
committerdv1tas <dv1tas@fbe50366-0c72-4402-a84b-5d246361dba7>
Sat, 12 Nov 2011 19:10:47 +0000 (19:10 +0000)
git-svn-id: svn://svn.code.sf.net/p/mstpd/code/trunk@14 fbe50366-0c72-4402-a84b-5d246361dba7

Makefile

index 30957dde9e7ab53e697266973287725389d33b34..4d467899f36e475c431037ffad6c00db30bbf49f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,12 @@ mstpctl: $(CTLOBJECTS)
 clean:
        rm -f *.o *~ .depend.bak mstpd mstpctl
 
+install: all
+       -mkdir -pv $(DESTDIR)/sbin
+       install -m 755 mstpd $(DESTDIR)/sbin/mstpd
+       install -m 755 mstpctl $(DESTDIR)/sbin/mstpctl
+       install -m 755 bridge-stp $(DESTDIR)/sbin/bridge-stp
+
 romfs: all
        $(ROMFSINST) /sbin/mstpd
        $(ROMFSINST) /sbin/mstpctl