ztatus

[discontinued] Status bar for dwm, and simple notification daemon.
git clone https://noxz.tech/git/ztatus.git
Log | Files | LICENSE

Makefile
1.POSIX:
2
3include config.mk
4
5SRC = ztatus.c
6OBJ = $(SRC:.c=.o)
7
8all: options ztatus
9
10options:
11	@echo ztatus build options:
12	@echo "VERSION = $(VERSION)"
13	@echo "CFLAGS  = $(STCFLAGS)"
14	@echo "LDFLAGS = $(STLDFLAGS)"
15	@echo "CC      = $(CC)"
16
17.c.o:
18	@echo CC $<
19	@$(CC) $(STCFLAGS) -c $<
20
21${OBJ}: config.h config.mk
22
23config.h:
24	@echo creating $@ from config.def.h
25	@cp config.def.h $@
26
27ztatus: $(OBJ)
28	@echo CC -o $@
29	@$(CC) -o $@ $(OBJ) $(STLDFLAGS)
30
31clean:
32	@echo cleaning
33	@rm -f ztatus $(OBJ)
34
35install: ztatus
36	@echo installing executables to ${PREFIX}/bin
37	@mkdir -p ${PREFIX}/bin
38	@cp -f ztatus ${PREFIX}/bin
39	@chmod 755 ${PREFIX}/bin/ztatus
40	@echo installing manual page to ${MANPREFIX}/man1
41	@mkdir -p ${MANPREFIX}/man1
42	@cp -f ztatus.1 ${MANPREFIX}/man1
43	@chmod 644 ${MANPREFIX}/man1/ztatus.1
44
45uninstall:
46	@echo removing executable files from ${PREFIX}/bin
47	@rm -f ${PREFIX}/bin/ztatus
48	@echo removing manual page from ${MANPREFIX}/man1
49	@rm -f ${MANPREFIX}/man1/ztatus.1
50
51.PHONY: all options clean install uninstall