~cmpitg/tint2/trunk

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Moerner
  • Date: 2008-09-06 07:54:24 UTC
  • Revision ID: james.westby@ubuntu.com-20080906075424-is5b8dfzealgllns
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
FLAGS=-Wall -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama imlib2 glib-2.0`
 
2
PROGNAME=tint
 
3
FILES=tint.c server.c window.c task.c launcher.c visual.c config.c
 
4
 
 
5
ifndef DESTDIR
 
6
        ifndef PREFIX
 
7
                BINDIR=/usr/bin
 
8
                XDG_CONFIG_DIR=/etc/xdg
 
9
        else
 
10
                BINDIR=$(PREFIX)/bin
 
11
                XDG_CONFIG_DIR=/etc/xdg
 
12
        endif
 
13
else
 
14
        BINDIR=$(DESTDIR)/usr/bin
 
15
        XDG_CONFIG_DIR=$(DESTDIR)/etc/xdg
 
16
endif
 
17
 
 
18
 
 
19
$(PROGNAME): $(FILES)
 
20
        $(CC) $(CFLAGS) $(FLAGS) -o $(PROGNAME) $(FILES)
 
21
        strip $(PROGNAME)
 
22
 
 
23
install:
 
24
        mkdir -p $(BINDIR)
 
25
        mkdir -p $(XDG_CONFIG_DIR)/tint
 
26
        install $(PROGNAME) $(BINDIR)
 
27
        cp -f ../tintrc1 $(XDG_CONFIG_DIR)/tint/tintrc
 
28
 
 
29
uninstall:
 
30
        rm -f $(BINDIR)/$(PROGNAME)
 
31
 
 
32
clean:
 
33
        rm -f $(PROGNAME)
 
34