aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 92b95a57f6f121ad9c886c77b9b18bf9a130ef90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.POSIX:
.PHONY: all clean install install-bin install-man
PREFIX = /usr/local
LDFLAGS = -lcrypt
all: crypt
clean:
	rm -f -- crypt
crypt: crypt.c crypt.h
install: install-bin install-man
install-bin: crypt
	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