polytreewm/Makefile

89 lines
1.6 KiB
Makefile
Raw Normal View History

2021-11-14 18:17:50 +00:00
# PolytreeWM - tiling window manager
2008-04-20 18:09:30 +00:00
# See LICENSE file for copyright and license details.
2006-07-10 14:38:18 +00:00
2021-11-16 23:00:30 +00:00
all: polytreewm
include config/1-custom.mk
include config/2-generated.mk
include config/3-custom.mk
include config/4-defvars.mk
include config/5-custom.mk
2021-11-16 22:02:06 +00:00
CONFIGMKS = \
config/1-custom.mk \
config/2-generated.mk \
config/3-custom.mk \
config/4-defvars.mk \
config/5-custom.mk
2021-11-16 19:48:06 +00:00
2021-11-16 22:02:06 +00:00
VERSION = 6.2
2006-07-10 14:38:18 +00:00
SRC = \
src/atoms.c \
src/drw.c \
src/dwm.c \
src/helpers.c \
src/layouts.c \
src/menu.c \
src/settings.c \
src/spawn.c \
src/tags.c \
src/util.c
HDR = \
src/atoms.h \
src/drw.h \
src/config.def.h \
src/helpers.h \
src/layouts.h \
src/menu.h \
src/settings.h \
src/spawn.h \
src/tags.h \
src/util.h
DWM_SRC = \
src/dwm/handlers.c \
src/dwm/layouts.c \
src/dwm/swallow.c \
src/dwm/systray.c
2006-07-12 23:30:55 +00:00
OBJ = ${SRC:.c=.o}
2021-11-16 15:03:26 +00:00
DWM_HDR = ${DWM_SRC:.c=.h}
polytreewm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
2021-11-12 21:48:06 +00:00
%.o: %.c
${CC} -c $< -o $@ ${CFLAGS}
2006-07-10 14:38:18 +00:00
2021-11-16 15:03:26 +00:00
dwm.o: ${DWM_SRC} ${DWM_HDR}
2021-11-16 22:02:06 +00:00
${OBJ}: ${CONFIGMKS} ${HDR}
2006-07-10 14:38:18 +00:00
clean:
rm -f polytreewm ${OBJ}
2006-07-10 14:49:43 +00:00
2021-11-16 22:02:06 +00:00
distclean: clean
rm -f \
config/1-custom.mk \
config/2-generated.mk \
config/3-custom.mk \
config/4-defvars.mk \
config/5-custom.mk
2021-11-16 22:02:06 +00:00
2006-07-10 14:49:43 +00:00
install: all
2021-11-16 22:02:06 +00:00
mkdir -p ${DESTDIR}${BINDIR}
cp -f polytreewm ${DESTDIR}${BINDIR}
chmod 755 ${DESTDIR}${BINDIR}/polytreewm
2021-11-12 08:42:58 +00:00
2021-11-16 22:02:06 +00:00
mkdir -p ${DESTDIR}${MANDIR}/man1
sed "s/VERSION/${VERSION}/g" < polytreewm.1 > ${DESTDIR}${MANDIR}/man1/polytreewm.1
chmod 644 ${DESTDIR}${MANDIR}/man1/polytreewm.1
2006-07-10 14:49:43 +00:00
uninstall:
2021-11-12 08:42:58 +00:00
rm -f \
2021-11-16 22:02:06 +00:00
${DESTDIR}${BINDIR}/polytreewm \
${DESTDIR}${MANDIR}/man1/polytreewm.1
2021-11-16 23:00:30 +00:00
.PHONY: all clean distclean install uninstall