aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c758d39c7c0c74451d15b223ea229da359090c6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.POSIX:

CFLAGS   = -Wall -Wextra -Wpedantic -Werror \
	   -O3 -march=native -mtune=native -fomit-frame-pointer \
	   -pipe -D_POSIX_C_SOURCE=200809
PREFIX   = /usr
DPREFIX  = ${DESTDIR}${PREFIX}
MANDIR   = ${DPREFIX}/share/man
ZCOMPDIR = ${DPREFIX}/share/zsh/functions/Completion/Unix

target = center

all: ${target}
${target}: ${target}.c

clean:
	rm -f ${target}

install:
	mkdir -p ${DPREFIX}/bin ${MANDIR}/man1 ${ZCOMPDIR}
	cp ${target} ${DPREFIX}/bin
	cp ${target}.1 ${MANDIR}/man1
	cp completions/_${target} ${ZCOMPDIR}