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
11 thumb-gdk.o
: thumb-gdk.c
12 $(CC
) -c
`pkg-config --cflags gdk-pixbuf-2.0` thumb-gdk.c
15 rm -f blorb-thumbnailer
*.o
17 install : blorb-thumbnailer
20 install blorb-thumbnailer
$(BINDIR
)
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` ; \
33 install -d
$(DEFDIR
) ; \
34 install blorb.thumbnailer
$(DEFDIR
) ; \
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
; \