aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 63cdcc48628fa48e54a739f805532322e03ac06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
VERSION = 0.2
DESTDIR ?= /usr/local
CFLAGS += -std=c99 -g -Wall -Wextra -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L
MODE ?= 4711

all: brightnessctl

install: brightnessctl
	install -d ${DESTDIR}/bin
	install -m ${MODE} brightnessctl ${DESTDIR}/bin/

clean:
	rm -f brightnessctl

.PHONY: all install clean