aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-16 17:26:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-16 17:26:22 +1300
commit5d362407910c0f902fc232b6cc806b1406a6ab25 (patch)
tree67b5f74289b2f0ebd7236f18918218f89f278e3f
parentUse just = for PREFIX def, not := (diff)
downloadcrypt-5d362407910c0f902fc232b6cc806b1406a6ab25.tar.gz
crypt-5d362407910c0f902fc232b6cc806b1406a6ab25.zip
Break install target in two
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a237f49..ced717c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all clean install
+.PHONY: all clean install install-bin install-man
CC = clang
CFLAGS = -std=c99 -Weverything
@@ -10,8 +10,12 @@ all : crypt
clean :
rm -f crypt
-install : crypt
- mkdir -p -- $(PREFIX)/bin $(PREFIX)/share/man/man1
+install : install-bin install-min
+
+install-bin : crypt
+ mkdir -p -- $(PREFIX)/bin
install crypt -- $(PREFIX)/bin
- install crypt.1 -- $(PREFIX)/share/man/man1
+install-man : crypt.1
+ mkdir -p -- $(PREFIX)/share/man/man1
+ install crypt.1 -- $(PREFIX)/share/man/man1