]> Dogcows Code - chaz/tint2/blob - src/Makefile
c31fc32c18d43b1e26a7abd8c1374ef8f5d2d987
[chaz/tint2] / src / Makefile
1 CFLAGS= -O2
2 CC = gcc
3 FLAGS=-W -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama imlib2 glib-2.0`
4 PROGNAME=tint2
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
6
7 ifndef DESTDIR
8 ifndef PREFIX
9 BINDIR=/usr/bin
10 XDG_CONFIG_DIR=/etc/xdg
11 MANDIR=/usr/share/man
12 else
13 BINDIR=$(PREFIX)/bin
14 XDG_CONFIG_DIR=/etc/xdg
15 MANDIR=/usr/share/man
16 endif
17 else
18 BINDIR=$(DESTDIR)/usr/bin
19 XDG_CONFIG_DIR=$(DESTDIR)/etc/xdg
20 MANDIR=$(DESTDIR)/usr/share/man
21 endif
22
23
24 $(PROGNAME): $(FILES) $(SYSTRAYOBJ)
25 $(CC) $(CFLAGS) -I. -Iutil -Iclock -Itaskbar -Isystray -o $(PROGNAME) $(FILES) $(FLAGS)
26 strip $(PROGNAME)
27
28 install:
29 mkdir -p $(BINDIR)
30 mkdir -p $(XDG_CONFIG_DIR)/tint2
31 mkdir -p $(MANDIR)
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
36
37 uninstall:
38 rm -f $(BINDIR)/$(PROGNAME)
39 rm -f $(MANDIR)/man1/tint2.1
40
41 clean:
42 rm -f $(PROGNAME)
43
44 .PHONY: clean uninstall install
This page took 0.033869 seconds and 4 git commands to generate.