bump version
[blorb-thumbnailer.git] / Makefile
blob70774f872416ba0c48e5edc962b173a4bd3b1a3f
1 PREFIX = /usr/local
2 BINDIR = $(DESTDIR)$(PREFIX)/bin
3 MANDIR = $(DESTDIR)$(PREFIX)/man/man1
4 DEFDIR = $(DESTDIR)$(PREFIX)/share/thumbnailers
6 blorb-thumbnailer : main.o minblorb.o thumb-gdk.o
7 $(CC) -lgdk_pixbuf-2.0 -lgobject-2.0 -o blorb-thumbnailer *.o
9 main.o : main.h
11 thumb-gdk.o : thumb-gdk.c
12 $(CC) -c `pkg-config --cflags gdk-pixbuf-2.0` thumb-gdk.c
14 clean :
15 rm -f blorb-thumbnailer *.o
17 install : blorb-thumbnailer
19 install -d $(BINDIR)
20 install blorb-thumbnailer $(BINDIR)
22 install -d $(MANDIR)
23 install blorb-thumbnailer.1 $(MANDIR)
25 PATH=$$PATH:scripts xdg-mime install --novendor blorb.xml
27 set `gnome-session --version` ; \
28 if [ $$2 \< '3' ] ; then \
29 GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
30 gconftool-2 --makefile-install-rule blorb-thumbnailer.schemas ; \
31 kill -s HUP `pidof gconfd-2` ; \
32 else \
33 install -d $(DEFDIR) ; \
34 install blorb.thumbnailer $(DEFDIR) ; \
37 uninstall :
38 rm -f $(BINDIR)/blorb-thumbnailer
39 rm -f $(MANDIR)/blorb-thumbnailer.1
40 rm -f $(DEFDIR)/blorb.thumbnailer
42 PATH=$$PATH:scripts xdg-mime uninstall blorb.xml
44 set `gnome-session --version` ; \
45 if [ $$2 \< '3' ] ; then \
46 GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
47 gconftool-2 --makefile-uninstall-rule blorb-thumbnailer.schemas ; \
48 killall -HUP gconfd-2 ; \