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

LDFLAGS = -llux
CFLAGS = -std=c11 -O3 -pipe -Wall -Wextra -Werror -pedantic
PREFIX = /usr
MANDIR = ${PREFIX}/share/man

target = lux

all: ${target}
${target}: main.c
	${CC} ${CFLAGS} ${LDFLAGS} -o $@ $<

install:
	mkdir -p ${PREFIX}/bin ${MANDIR}/man1
	cp ${target} ${PREFIX}/bin
	cp *.1 ${MANDIR}/man1

clean:
	rm -f ${target}