chiark / gitweb /
Introduce an installdirs target.
authorRichard Kettlewell <rjk@terraraq.org.uk>
Sun, 24 Jul 2011 16:03:26 +0000 (17:03 +0100)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Sun, 24 Jul 2011 17:09:57 +0000 (18:09 +0100)
Signed-off-by: Richard Kettlewell <rjk@terraraq.org.uk>
Makefile.in

index 68b7b7b..e82baf6 100644 (file)
@@ -139,8 +139,10 @@ version.c: Makefile
        echo "char version[]=\"secnet $(VERSION)\";" >>$@.new
        mv -f $@.new $@
 
-install: all
+installdirs:
        $(INSTALL) -d $(prefix)/share/secnet $(sbindir)
+
+install: installdirs
        $(INSTALL_PROGRAM) secnet $(sbindir)/`echo secnet|sed '$(transform)'`
        $(INSTALL_PROGRAM) ${srcdir}/make-secnet-sites $(sbindir)/`echo make-secnet-sites|sed '$(transform)'`
        $(INSTALL) ${srcdir}/ipaddr.py $(prefix)/share/secnet/ipaddr.py