1 # wmpus - cross platofrm window manager
2 # See LICENSE file for copyright and license details.
11 MANPREFIX ?= ${PREFIX}/share/man
16 LDFLAGS += -lxcb -lxcb-keysyms -lxcb-util -lxcb-ewmh -lxcb-xinerama
22 LDFLAGS += -lX11 -lXinerama
37 tar -czf wmpus-$(VERSION).tar.gz --transform s::wmpus-$(VERSION)/: \
38 README LICENSE config.mk.example makefile *.1 *.c *.h
41 sed -i 's:/usr.*:$(PREFIX)/bin/wmpus:' wmpus.session
42 install -m 755 -D $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
43 install -m 644 -D wmpus.1 $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
44 install -m 755 -D wmpus.session $(DESTDIR)/etc/X11/Sessions/wmpus
45 install -m 644 -D wmpus.desktop $(DESTDIR)$(PREFIX)/share/xsessions/wmpus.desktop
48 rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
49 rm -f $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
51 $(PROG): main.o conf.o util.o sys-$(SYS).o wm-$(WM).o
52 $(GCC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
54 %.o: %.c $(wildcard *.h) makefile
55 $(GCC) $(CFLAGS) --std=gnu99 -c -o $@ $<
57 .PHONY: all clean dist install uninstall