-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 1.05 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# AtlasWM - navigating the world of the windows
include config.mk
SRC = draw.c atlas.c util.c layouts.c config.c ipc.c windows.c events.c input.c focus.c monitor.c client.c actions.c toml.c
OBJ = ${SRC:.c=.o}
all: atlaswm
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
atlaswm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
rm -f atlaswm ${OBJ} atlaswm-${VERSION}.tar.gz
dist: clean
mkdir -p atlaswm-${VERSION}
cp -R LICENSE Makefile README config.mk\
atlaswm.1 util.h ${SRC} atlaswm.png transient.c atlaswm-${VERSION}
tar -cf atlaswm-${VERSION}.tar atlaswm-${VERSION}
gzip atlaswm-${VERSION}.tar
rm -rf atlaswm-${VERSION}
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f atlaswm ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/atlaswm
# mkdir -p ${DESTDIR}${MANPREFIX}/man1
# sed "s/VERSION/${VERSION}/g" < atlaswm.1 > ${DESTDIR}${MANPREFIX}/man1/atlaswm.1
# chmod 644 ${DESTDIR}${MANPREFIX}/man1/atlaswm.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/atlaswm
# ${DESTDIR}${MANPREFIX}/man1/atlaswm.1
.PHONY: all clean dist install uninstall