3 FLAGS=-W -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama imlib2 glib-2.0`
5 FILES=tint.c server.c panel.c config.c taskbar/task.c taskbar/taskbar.c clock/clock.c systray/systraybar.c util/window.c util/area.c
10 XDG_CONFIG_DIR=/etc/xdg
14 XDG_CONFIG_DIR=/etc/xdg
18 BINDIR=$(DESTDIR)/usr/bin
19 XDG_CONFIG_DIR=$(DESTDIR)/etc/xdg
20 MANDIR=$(DESTDIR)/usr/share/man
24 $(PROGNAME): $(FILES) $(SYSTRAYOBJ)
25 $(CC) $(CFLAGS) -I. -Iutil -Iclock -Itaskbar -Isystray -o $(PROGNAME) $(FILES) $(FLAGS)
30 mkdir -p $(XDG_CONFIG_DIR)/tint2
32 mkdir -p $(MANDIR)/man1
33 install $(PROGNAME) $(BINDIR)
34 cp -f ../tintrc01 $(XDG_CONFIG_DIR)/tint2/tint2rc
35 cp -f ../doc/man/tint2.1 $(MANDIR)/man1
38 rm -f $(BINDIR)/$(PROGNAME)
39 rm -f $(MANDIR)/man1/tint2.1
44 .PHONY: clean uninstall install