]> git.street.me.uk Git - andy/viking.git/blobdiff - src/Makefile.am
Document previous translation updates
[andy/viking.git] / src / Makefile.am
index 1846df5b422b3613e05a6787b7da339cc9a1920e..153606c917213c1f6796ee995187e1b6d4d04880 100644 (file)
@@ -7,14 +7,26 @@ bin_PROGRAMS = viking
 
 noinst_LIBRARIES = libviking.a
 
-authors.h: ../AUTHORS
+authors.h: $(top_srcdir)/AUTHORS
        rm -f $@
        echo "/* Generated file. */" >> $@
        echo "const gchar *AUTHORS[] = {\\" >> $@
        sed -e "s/ \*\*.*//" -e 's/^/"/' -e 's/$$/",\\/' -e '$$s/\\$$//' $< >> $@
        echo "NULL};" >> $@
 
-BUILT_SOURCES = authors.h
+if HAVE_XSLTPROC
+XP=@XP@
+documenters.h: $(top_srcdir)/help/C/viking.xml
+       $(XP) $(srcdir)/docbook2documenters.xsl $(top_srcdir)/help/C/viking.xml > $@
+else
+documenters.h:
+       rm -f $@
+       echo "/* Generated file. */" >> $@
+       echo "const gchar *DOCUMENTERS[] = {\\" >> $@
+       echo "NULL};" >> $@
+endif
+
+BUILT_SOURCES = authors.h documenters.h
 
 vikenumtypes.h: vikenumtypes.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.h.template $(ENUM_H_FILES)) > $@
@@ -23,6 +35,7 @@ vikenumtypes.c: vikenumtypes.c.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
        (cd $(srcdir) && $(GLIB_MKENUMS) --template vikenumtypes.c.template $(ENUM_H_FILES)) > $@
 
 EXTRA_DIST =                         \
+        docbook2documenters.xsl      \
         vikenumtypes.h.template      \
         vikenumtypes.c.template
 
@@ -48,6 +61,7 @@ libviking_a_SOURCES = \
        gpspoint.c gpspoint.h \
        file.c file.h \
        authors.h \
+       documenters.h \
        dialog.c dialog.h \
        util.c util.h \
        download.c download.h \
@@ -65,9 +79,9 @@ libviking_a_SOURCES = \
        vikgpslayer.c vikgpslayer.h \
        vikgeoreflayer.c vikgeoreflayer.h \
        vikfileentry.c vikfileentry.h \
-       viksearchtool.c viksearchtool.h \
-       vikxmlsearchtool.c vikxmlsearchtool.h \
-       viksearch.c viksearch.h \
+       vikgototool.c vikgototool.h \
+       vikgotoxmltool.c vikgotoxmltool.h \
+       vikgoto.c vikgoto.h \
        viktrwlayer_tpwin.c viktrwlayer_tpwin.h \
        viktrwlayer_propwin.c viktrwlayer_propwin.h \
        thumbnails.c thumbnails.h \
@@ -132,13 +146,9 @@ libviking_a_SOURCES += \
        bluemarble.c bluemarble.h
 endif
 
-if OPENAERIAL
-libviking_a_SOURCES += \
-       openaerial.c openaerial.h
-endif
-
 if GEONAMES
 libviking_a_SOURCES += \
+       geonames.c geonames.h \
        geonamessearch.c geonamessearch.h
 endif
 
@@ -149,7 +159,6 @@ if REALTIME_GPS_TRACKING
 LDADD           += -lgps
 endif
 AM_CFLAGS              = -Wall -g -D_GNU_SOURCE \
-       $(DISABLE_DEPRECATED_CFLAGS) \
        $(PACKAGE_CFLAGS) \
        @EXPAT_CFLAGS@ @LIBCURL_CPPFLAGS@