blob: fe6c48f727918b5a3ecb8ad45f1e2e091e80b2cf (
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
24
25
26
27
28
|
.POSIX:
target = mstatus
CC = cc
CFLAGS = -O3 -std=c11 -pedantic -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Werror
LDFLAGS = -lX11
PREFIX = /usr/local
HAS_DWM = false
all: ${target}
${target}: mstatus.c
${HAS_DWM} \
&& ${CC} ${CFLAGS} ${LDFLAGS} -DHAS_DWM -o $@ $< \
|| ${CC} ${CFLAGS} -o $@ $<
clean:
rm -f ${target} ${objects}
install:
mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${PREFIX}/share/man/man1
cp -f ${target} ${DESTDIR}${PREFIX}/bin
cp -f ${target}.1 ${DESTDIR}${PREFIX}/share/man/man1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${target} ${DESTDIR}${PREFIX}/share/man/man1/${target}.1
|