about summary refs log tree commit diff stats
path: root/Makefile
blob: b139b544f91a86994ca125a229540e13ea7ab25a (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# dwm - dynamic window manager
# See LICENSE file for copyright and license details.

include config.mk

SRC = dwm.c
OBJ = ${SRC:.c=.o}

all: options dwm

options:
	@echo dwm build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "LDFLAGS  = ${LDFLAGS}"
	@echo "CC       = ${CC}"

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

${OBJ}: config.h config.mk

config.h:
	@echo creating $@ from config.def.h
	@cp config.def.h $@

dwm: ${OBJ}
	@echo CC -o $@
	@${CC} -o $@ ${OBJ} ${LDFLAGS}

clean:
	@echo cleaning
	@rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz

dist: clean
	@echo creating dist tarball
	@mkdir -p dwm-${VERSION}
	@cp -R LICENSE Makefile README config.def.h config.mk \
		dwm.1 ${SRC} dwm-${VERSION}
	@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
	@gzip dwm-${VERSION}.tar
	@rm -rf dwm-${VERSION}

install: all
	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f dwm ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1

uninstall:
	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
	@rm -f ${DESTDIR}${PREFIX}/bin/dwm
	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
	@rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1

.PHONY: all options clean dist install uninstall
TTER SHA 0xe9 U+0449 #CYRILLIC SMALL LETTER SHCHA 0xea U+044a #CYRILLIC SMALL LETTER HARD SIGN 0xeb U+044b #CYRILLIC SMALL LETTER YERU 0xec U+044c #CYRILLIC SMALL LETTER SOFT SIGN 0xed U+044d #CYRILLIC SMALL LETTER E 0xee U+044e #CYRILLIC SMALL LETTER YU 0xef U+044f #CYRILLIC SMALL LETTER YA 0xf0 U+0401 #CYRILLIC CAPITAL LETTER IO 0xf1 U+0451 #CYRILLIC SMALL LETTER IO 0xf2 U+0404 #CYRILLIC CAPITAL LETTER UKRAINIAN IE 0xf3 U+0454 #CYRILLIC SMALL LETTER UKRAINIAN IE 0xf4 U+0407 #CYRILLIC CAPITAL LETTER YI 0xf5 U+0457 #CYRILLIC SMALL LETTER YI 0xf6 U+040e #CYRILLIC CAPITAL LETTER SHORT U 0xf7 U+045e #CYRILLIC SMALL LETTER SHORT U 0xf8 U+00b0 #DEGREE SIGN 0xf9 U+2219 #BULLET OPERATOR 0xfa U+00b7 #MIDDLE DOT 0xfb U+221a #SQUARE ROOT 0xfc U+2116 #NUMERO SIGN 0xfd U+00a4 #CURRENCY SIGN 0xfe U+25a0 #BLACK SQUARE 0xff U+00a0 #NO-BREAK SPACE