chiark / gitweb /
install target
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 5 Jul 2022 11:43:31 +0000 (12:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 5 Jul 2022 11:43:31 +0000 (12:43 +0100)
Makefile

index 644accbb1ffce405d2c544ccb6245cb1aecff123..ae8db6d76c6d6d3ff794d2e0c668b2c0303c1ad9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,14 @@ CFLAGS= -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs \
 LDFLAGS= -s
 LIBS= -lident
 
+INSTALL=install
+
 all:           nntp-merge md5cookie1way nnrpwrap nyxpostrun
 
+install:
+               $(INSTALL) -m 755 nntp-merge nnrpwrap /usr/local/sbin/
+               $(INSTALL) -m 755 md5cookie1way /usr/local/bin/
+
 nntp-merge:    main.o post.o config.o md5.o
                $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)