SF.net SVN: geany: [2378] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Mar 21 14:28:27 UTC 2008
Revision: 2378
http://geany.svn.sourceforge.net/geany/?rev=2378&view=rev
Author: eht16
Date: 2008-03-21 07:28:26 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Use configure's --docdir option when installing and using the documentation.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/Makefile.am
trunk/src/Makefile.am
trunk/src/main.c
trunk/src/prefix.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-21 14:02:59 UTC (rev 2377)
+++ trunk/ChangeLog 2008-03-21 14:28:26 UTC (rev 2378)
@@ -3,6 +3,9 @@
* src/callbacks.c:
When opening the manual on the website, include version string to
ensure the appropriate manual version is shown.
+ * src/prefix.h, src/main.c, src/Makefile.am, doc/Makefile.am:
+ Use configure's --docdir option when installing and using the
+ documentation.
2008-03-21 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/Makefile.am
===================================================================
--- trunk/doc/Makefile.am 2008-03-21 14:02:59 UTC (rev 2377)
+++ trunk/doc/Makefile.am 2008-03-21 14:28:26 UTC (rev 2378)
@@ -1,5 +1,5 @@
man_MANS=geany.1
-DOCDIR = $(DESTDIR)/$(datadir)/doc/@PACKAGE@
+DOCDIR = $(DESTDIR)/$(docdir)
IMAGE_FILES = images/*.png
EXTRA_DIST = geany.html geany.css geany.txt geany.1 plugins.dox plugin-symbols.c \
$(srcdir)/$(IMAGE_FILES)
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2008-03-21 14:02:59 UTC (rev 2377)
+++ trunk/src/Makefile.am 2008-03-21 14:28:26 UTC (rev 2378)
@@ -80,8 +80,9 @@
-lcomctl32 -liberty -lwsock32 geany_private.res
AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
+ -DGEANY_DOCDIR=\"\" \
+ -DGEANY_LIBDIR=\"\" \
-DGEANY_LOCALEDIR=\"data\" \
- -DGEANY_LIBDIR=\"\" \
-DGEANY_PREFIX=\"\"
geany_LDFLAGS = -mwindows -mms-bitfields
@@ -102,6 +103,7 @@
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ $(INTLLIBS)
AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
+ -DGEANY_DOCDIR=\""$(docdir)"\" \
-DGEANY_LIBDIR=\""$(libdir)"\" \
-DGEANY_LOCALEDIR=\""$(localedir)"\" \
-DGEANY_PREFIX=\""$(prefix)"\"
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-03-21 14:02:59 UTC (rev 2377)
+++ trunk/src/main.c 2008-03-21 14:28:26 UTC (rev 2378)
@@ -436,7 +436,7 @@
g_free(install_dir);
#else
data_dir = g_strconcat(GEANY_DATADIR, "/geany/", NULL); /* e.g. /usr/share/geany */
- doc_dir = g_strconcat(GEANY_DATADIR, "/doc/geany/html/", NULL);
+ doc_dir = g_strconcat(GEANY_DOCDIR, "/html/", NULL);
#endif
/* convert path names to locale encoding */
Modified: trunk/src/prefix.h
===================================================================
--- trunk/src/prefix.h 2008-03-21 14:02:59 UTC (rev 2377)
+++ trunk/src/prefix.h 2008-03-21 14:28:26 UTC (rev 2378)
@@ -63,6 +63,7 @@
#undef GEANY_PREFIX
#undef GEANY_DATADIR
#undef GEANY_LIBDIR
+ #undef GEANY_DOCDIR
#undef GEANY_LOCALEDIR
#define SELFPATH (br_thread_local_store (br_locate ((void *) "")))
@@ -76,6 +77,7 @@
#define GEANY_PREFIX (br_thread_local_store (br_locate_prefix ((void *) "")))
#define GEANY_DATADIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share")))
#define GEANY_LIBDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/lib")))
+ #define GEANY_DOCDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share/doc/geany")))
#define GEANY_LOCALEDIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share/locale")))
#endif /* BR_NO_MACROS */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list