]> git.neil.brown.name Git - portmap.git/commitdiff
Simple 'install' Makefile target
authorNeil Brown <neilb@notabene.brown>
Fri, 20 Apr 2007 02:42:36 +0000 (12:42 +1000)
committerNeil Brown <neilb@notabene.brown>
Fri, 20 Apr 2007 02:42:36 +0000 (12:42 +1000)
Copies from Debian (but without /usr/share/doc/portmap stuff).

Makefile

index d6dbfd33b4300f99a36b00247e215cff33859822..a05f9fe702d233f43cf74340a9b19d3ba0f28054 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,14 @@ pmap_set: pmap_set.c
 from_local: from_local.c
        cc $(CFLAGS) -DTEST -o $@ from_local.c
 
+install: all
+       install -o root -g root -m 0755 -s portmap ${BASEDIR}/sbin
+       install -o root -g root -m 0755 -s pmap_dump ${BASEDIR}/sbin
+       install -o root -g root -m 0755 -s pmap_set ${BASEDIR}/sbin
+       install -o root -g root -m 0644 portmap.8 ${BASEDIR}/usr/share/man/man8
+       install -o root -g root -m 0644 pmap_dump.8 ${BASEDIR}/usr/share/man/man8
+       install -o root -g root -m 0644 pmap_set.8 ${BASEDIR}/usr/share/man/man8
+
 lint:  
        lint $(COPT) $(OBJECTS:%.o=%.c)