]> git.donarmstrong.com Git - xournal.git/blob - Makefile.am
Add a hand tool
[xournal.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = src
4
5 EXTRA_DIST = \
6         autogen.sh \
7         xournal.glade \
8         xournal.gladep \
9         maemo/xournal.desktop \
10         maemo/xournal.service
11
12 install-data-local:
13         @$(NORMAL_INSTALL)
14         if test -d $(srcdir)/pixmaps; then \
15           $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
16           for pixmap in $(srcdir)/pixmaps/*; do \
17             if test -f $$pixmap; then \
18               $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
19             fi \
20           done \
21         fi; \
22         if test -d $(srcdir)/html-doc; then \
23           $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/html-doc; \
24           for docfile in $(srcdir)/html-doc/*; do \
25             if test -f $$docfile; then \
26               $(INSTALL_DATA) $$docfile $(DESTDIR)$(pkgdatadir)/html-doc; \
27             fi \
28           done; \
29           if test ! -e $(DESTDIR)$(pkgdatadir)/html-doc/pixmaps; then \
30             ln -s ../pixmaps $(DESTDIR)$(pkgdatadir)/html-doc/pixmaps; \
31           fi \
32         fi
33
34 dist-hook:
35         if test -d pixmaps; then \
36           mkdir $(distdir)/pixmaps; \
37           for pixmap in pixmaps/*; do \
38             if test -f $$pixmap; then \
39               cp -p $$pixmap $(distdir)/pixmaps; \
40             fi \
41           done \
42         fi; \
43         if test -d html-doc; then \
44           mkdir $(distdir)/html-doc; \
45           for docfile in html-doc/*; do \
46             if test -f $$docfile; then \
47               cp -p $$docfile $(distdir)/html-doc; \
48             fi \
49           done; \
50           if test ! -e $(distdir)/html-doc/pixmaps; then \
51             ln -s ../pixmaps $(distdir)/html-doc/pixmaps; \
52           fi \
53         fi
54
55 if USE_HILDON
56 desktopdir = $(datadir)/applications/hildon
57 desktop_DATA = maemo/xournal.desktop 
58
59 servicedir = $(libdir)/dbus-1.0/services
60 service_DATA = maemo/xournal.service
61 endif