root/Makefile.am

Revision 6704bc036d05e1b20750644e1f966ecf66ac1b0e, 1.4 kB (checked in by Armin Burgmeier <armin@…>, 2 years ago)

Don't build documentation if gnome-doc-utils is not available

2009-12-19 Armin Burgmeier <armin@…>

  • configure.ac:
  • Makefile.am: Don't require gnome-doc-utils do be available, build without documentation if they are not, such as on Windows.
  • Property mode set to 100644
Line 
1SUBDIRS = m4 win32 code . icons po
2
3if HAVE_GNOME_DOC_UTILS
4SUBDIRS += help
5endif
6
7# Tell aclocal where to find `.m4' files.
8ACLOCAL_AMFLAGS = -I m4
9
10dist_man_MANS = gobby-0.5.1
11
12bin_PROGRAMS = gobby-0.5
13
14gobby_0_5_LDADD = \
15        code/libgobby.a \
16        code/commands/libgobby-commands.a \
17        code/commands/file-tasks/libgobby-file-tasks.a \
18        code/operations/libgobby-operations.a \
19        code/dialogs/libgobby-dialogs.a \
20        code/core/libgobby-core.a \
21        code/util/libgobby-util.a \
22        $(gobby_LIBS) \
23        $(unique_LIBS) \
24        $(infinote_LIBS) \
25        $(LIBS)
26
27if WIN32
28gobby_0_5_LDADD += -lws2_32
29gobby_0_5_LDFLAGS = \
30        -Wl,--enable-runtime-pseudo-reloc \
31        -mwindows \
32        win32/gobby.res
33endif
34
35gobby_0_5_SOURCES =
36
37# .desktop file
38if !WIN32
39desktopdir = $(datadir)/applications
40desktop_in_files = gobby-0.5.desktop.in
41desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
42endif
43
44clean-local:
45        -rm -rf gobby-0.5.desktop
46
47@INTLTOOL_DESKTOP_RULE@
48
49# Dummy C++ source to cause C++ linking, otherwise some platforms don't link
50# correctly against libstdc++. See also #399. Note that this file does not
51# (need to) exist in the source tree.
52nodist_EXTRA_gobby_0_5_SOURCES = dummy.cpp
53
54# Debian seems to need an XPM of the program icon, so we provide one here.
55# It's currently not used for anything else, though.
56EXTRA_DIST = gobby-0.5.xpm
57
58# For the manual
59EXTRA_DIST += gnome-doc-utils.make gobby-0.5.desktop.in
60DISTCLEANFILES = gnome-doc-utils.make
61DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
62
Note: See TracBrowser for help on using the browser.