blob: 21786effe2dd27bb33133d570075a53ba651683d (
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
|
# set wm name - sets the WM name
include config.mk
SRC = setwmname.c
OBJ = ${SRC:.c=.o}
all: options setwmname
options:
@echo setwmname build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@echo "LD = ${LD}"
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
setwmname: ${OBJ}
@echo LD $@
@${LD} -o $@ ${OBJ} ${LDFLAGS}
@strip $@
clean:
@echo cleaning
@rm -f setwmname ${OBJ} setwmname-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball
@mkdir -p setwmname-${VERSION}
@cp -R LICENSE Makefile README config.mk ${SRC} setwmname-${VERSION}
@tar -cf setwmname-${VERSION}.tar setwmname-${VERSION}
@gzip setwmname-${VERSION}.tar
@rm -rf setwmname-${VERSION}
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f setwmname ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/setwmname
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/setwmname
.PHONY: all options clean dist install uninstall
|