wmmoonclock: add autogen.
[dockapps.git] / wmtrash / Makefile
blob6527ae4e581643a1d8983a60a00f9a440aa66d10
3 # this makefile is part of the "wmtrash" project.
4 # Copyright (C) 2003 by Jean Philippe GUILLEMIN <jp.guillemin@free.fr>
5 # license: This software is under GPL version 2 of license
8 HEADERS =
10 OBJECTS =
12 # customize install path as you need
13 SRC = wmtrash.c
14 BIN = wmtrash
15 PREFIX = /usr
16 CONFDIR = /etc/wmtrash
17 DESTDIR =
18 SHAREDIR = /share/wmtrash
20 SRCPATH = .
21 BINPATH = $(DESTDIR)$(PREFIX)/bin
22 CONFIGPATH = $(DESTDIR)$(CONFDIR)
23 ICONPATH = $(DESTDIR)$(PREFIX)$(SHAREDIR)
24 CONFIGFILE = default.cf
25 CFLAGS = -g -Wall
26 DEFINE = -D__CONFPATH='"$(CONFDIR)"' -D__CONFFILE='"$(CONFIGFILE)"' -D__ICONPATH='"$(PREFIX)$(SHAREDIR)"'
28 LIBCONFIG = `pkg-config x11 gtk+-2.0 --cflags --libs`
31 $(BIN) : $(SRC)
32 gcc $(CFLAGS) $(DEFINE) $(LIBCONFIG) -o $(BIN) $(SRC)
35 install : $(BIN) path
36 chmod 755 $(SRCPATH)/$(BIN)
37 chmod 666 $(SRCPATH)/conf/*.xpm
38 chmod 666 $(SRCPATH)/conf/*.cf
39 strip $(SRCPATH)/$(BIN)
40 cp -pf $(SRCPATH)/$(BIN) $(BINPATH)/
41 cp -pf $(SRCPATH)/conf/*.xpm $(ICONPATH)/
42 cp -pf $(SRCPATH)/conf/*.cf $(CONFIGPATH)/
45 uninstall : $(BINPATH)/$(BIN)
46 rm -f $(BINPATH)/$(BIN)
47 rm -rf $(CONFIGPATH)
48 rm -rf $(ICONPATH)
51 clean :
52 rm -f $(SRCPATH)/*.o
53 rm -f $(SRCPATH)/$(BIN)
56 path : $(PREFIX)
57 mkdir -p $(CONFIGPATH)
58 mkdir -p $(ICONPATH)