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

CFLAGS  = -std=c11 -O3 -pipe -Wall -Wextra -Werror -pedantic
LDFLAGS = -llux

PREFIX  = /usr
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR  = ${DPREFIX}/share/man

target = lux

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

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

clean:
	rm -f ${target}