aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-01-07 10:43:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-01-07 10:43:30 +1300
commitd822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e (patch)
treeb6b061c30185f168bfe6e134a5b9f1fdb2a3bbe9
parentAdd VERSION (diff)
downloadcrypt-d822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e.tar.gz
crypt-d822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e.zip
Refactor Makefile
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 92b95a5..e263d11 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,15 @@
.POSIX:
-.PHONY: all clean install install-bin install-man
+.PHONY: all clean distclean install
PREFIX = /usr/local
+#CFLAGS = -Werror -Wstrict -pedantic # Recommended for GCC
LDFLAGS = -lcrypt
-all: crypt
-clean:
- rm -f -- crypt
+ALL = crypt
+all: $(ALL)
crypt: crypt.c crypt.h
-install: install-bin install-man
-install-bin: crypt
+install:
mkdir -p -- $(PREFIX)/bin
cp -- crypt $(PREFIX)/bin
-install-man: crypt.1
mkdir -p -- $(PREFIX)/share/man/man1
cp -- crypt.1 $(PREFIX)/share/man/man1
+clean distclean:
+ rm -f -- $(ALL)