Release 0.2.5.
[lxde/gpicview.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
3
4 SUBDIRS = src po data
5
6 desktopdir = $(datadir)/applications
7 desktop_in_files = gpicview.desktop.in
8 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
9 @INTLTOOL_DESKTOP_RULE@
10
11 icondir = $(datadir)/icons/hicolor/48x48/apps
12 icon_DATA = gpicview.png
13
14 EXTRA_DIST = \
15         autogen.sh \
16         $(desktop_in_files) \
17         $(desktop_DATA) \
18         $(icon_DATA)
19
20 install-data-local:
21         @$(NORMAL_INSTALL)
22         if test -d $(srcdir)/pixmaps; then \
23           $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
24           for pixmap in $(srcdir)/pixmaps/*; do \
25             if test -f $$pixmap; then \
26               $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
27             fi \
28           done \
29         fi
30
31 dist-hook:
32         if test -d pixmaps; then \
33           mkdir $(distdir)/pixmaps; \
34           for pixmap in pixmaps/*; do \
35             if test -f $$pixmap; then \
36               cp -p $$pixmap $(distdir)/pixmaps; \
37             fi \
38           done \
39         fi