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
12 # customize install path as you need
16 CONFDIR
= /etc
/wmtrash
18 SHAREDIR
= /share
/wmtrash
21 BINPATH
= $(DESTDIR
)$(PREFIX
)/bin
22 CONFIGPATH
= $(DESTDIR
)$(CONFDIR
)
23 ICONPATH
= $(DESTDIR
)$(PREFIX
)$(SHAREDIR
)
24 CONFIGFILE
= default.cf
26 DEFINE
= -D__CONFPATH
='"$(CONFDIR)"' -D__CONFFILE
='"$(CONFIGFILE)"' -D__ICONPATH
='"$(PREFIX)$(SHAREDIR)"'
28 LIBCONFIG
= `pkg-config x11 gtk+-2.0 --cflags --libs`
32 gcc
$(CFLAGS
) $(DEFINE
) $(LIBCONFIG
) -o
$(BIN
) $(SRC
)
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
)
53 rm -f
$(SRCPATH
)/$(BIN
)
57 mkdir
-p
$(CONFIGPATH
)