diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-07 10:43:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-07 10:43:30 +1300 |
commit | d822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e (patch) | |
tree | b6b061c30185f168bfe6e134a5b9f1fdb2a3bbe9 | |
parent | Add VERSION (diff) | |
download | crypt-d822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e.tar.gz crypt-d822e3b0b7ace3725e31a1c69e6e08b0f34d7d0e.zip |
Refactor Makefile
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |