aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '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)