~ubuntu-branches/ubuntu/precise/gcalctool/precise-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-02-07 11:48:47 UTC
  • mfrom: (1.3.29)
  • Revision ID: package-import@ubuntu.com-20120207114847-isidckgzes7uqqrz
Tags: 6.3.5-0ubuntu1
* New upstream version.
* debian/control.in: build-depends on yelp-tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
  AC_SUBST(WARN_CXXFLAGS)
218
218
])
219
219
 
220
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
221
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
222
 
AC_DEFUN([GNOME_DOC_DEFINES],
223
 
[
224
 
AC_ARG_WITH([help-dir],
225
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
226
 
  [with_help_dir='${datadir}/gnome/help'])
227
 
HELP_DIR="$with_help_dir"
228
 
AC_SUBST(HELP_DIR)
229
 
 
230
 
AC_ARG_WITH([omf-dir],
231
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
232
 
  [with_omf_dir='${datadir}/omf'])
233
 
OMF_DIR="$with_omf_dir"
234
 
AC_SUBST(OMF_DIR)
235
 
 
236
 
AC_ARG_WITH([help-formats],
237
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
238
 
  [with_help_formats=''])
239
 
DOC_USER_FORMATS="$with_help_formats"
240
 
AC_SUBST(DOC_USER_FORMATS)
241
 
 
242
 
AC_ARG_ENABLE([scrollkeeper],
243
 
        [AC_HELP_STRING([--disable-scrollkeeper],
244
 
                        [do not make updates to the scrollkeeper database])],,
245
 
        enable_scrollkeeper=yes)
246
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
247
 
 
248
 
dnl disable scrollkeeper automatically for distcheck
249
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
250
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
251
 
 
252
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
253
 
])
254
 
 
255
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
256
 
#
257
 
AC_DEFUN([GNOME_DOC_INIT],
258
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
259
 
 
260
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
261
 
 
262
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
263
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
264
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
265
 
 
266
 
if test "$gdu_cv_have_gdu" = "yes"; then
267
 
        AC_MSG_RESULT([yes])
268
 
        ifelse([$2],,[:],[$2])
269
 
else
270
 
        AC_MSG_RESULT([no])
271
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
272
 
fi
273
 
 
274
 
GNOME_DOC_DEFINES
275
 
])
276
 
 
277
220
dnl GLIB_GSETTINGS
278
221
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
279
222
dnl the schema should be compiled
360
303
 
361
304
 
362
305
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
363
 
# serial 40 IT_PROG_INTLTOOL
 
306
# serial 41 IT_PROG_INTLTOOL
364
307
AC_DEFUN([IT_PROG_INTLTOOL], [
365
308
AC_PREREQ([2.50])dnl
366
309
AC_REQUIRE([AM_NLS])dnl
392
335
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
393
336
fi
394
337
 
395
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
396
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
397
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
398
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
399
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
400
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
401
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
402
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
403
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
404
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
405
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
406
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@' 
407
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
408
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
409
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
410
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
411
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
412
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
413
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
338
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
339
  AM_DEFAULT_VERBOSITY=1
 
340
fi
 
341
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
342
 
 
343
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
344
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
345
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
346
AC_SUBST(INTLTOOL_V_MERGE)
 
347
AC_SUBST(INTLTOOL__v_MERGE_)
 
348
AC_SUBST(INTLTOOL__v_MERGE_0)
 
349
 
 
350
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
351
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
352
intltool__v_merge_options_0='-q'
 
353
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
354
AC_SUBST(intltool__v_merge_options_)
 
355
AC_SUBST(intltool__v_merge_options_0)
 
356
 
 
357
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
358
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
359
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
360
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
361
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
362
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
363
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
364
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
365
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
366
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
367
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
368
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
369
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
370
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
371
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
372
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
373
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
374
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
375
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
414
376
 
415
377
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
416
378
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
745
707
fi[]dnl
746
708
])# PKG_CHECK_MODULES
747
709
 
 
710
AC_DEFUN([YELP_HELP_INIT],
 
711
[
 
712
AC_REQUIRE([AC_PROG_LN_S])
 
713
m4_pattern_allow([AM_V_at])
 
714
m4_pattern_allow([AM_V_GEN])
 
715
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
 
716
AC_ARG_WITH([help-dir],
 
717
            AC_HELP_STRING([--with-help-dir=DIR],
 
718
                           [path where help files are installed]),,
 
719
            [with_help_dir='${datadir}/help'])
 
720
HELP_DIR="$with_help_dir"
 
721
AC_SUBST(HELP_DIR)
 
722
 
 
723
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
 
724
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
 
725
if test x"$ITSTOOL" = x; then
 
726
  AC_MSG_ERROR([itstool not found])
 
727
fi
 
728
 
 
729
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
 
730
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
 
731
if test x"$XMLLINT" = x; then
 
732
  AC_MSG_ERROR([xmllint not found])
 
733
fi
 
734
 
 
735
YELP_HELP_RULES='
 
736
HELP_ID ?=
 
737
HELP_POT ?=
 
738
HELP_FILES ?=
 
739
HELP_EXTRA ?=
 
740
HELP_MEDIA ?=
 
741
HELP_LINGUAS ?=
 
742
 
 
743
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
 
744
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
 
745
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
 
746
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
 
747
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
 
748
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
 
749
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
 
750
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
 
751
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
 
752
 
 
753
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
 
754
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
 
755
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
 
756
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
 
757
_HELP_LC_VERBOSE_0 = @echo "  GEN    "$(dir [$]@);
 
758
 
 
759
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
 
760
 
 
761
.PHONY: pot
 
762
pot: $(_HELP_POTFILE)
 
763
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
 
764
        $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
 
765
 
 
766
.PHONY: repo
 
767
repo: $(_HELP_POTFILE)
 
768
        $(AM_V_at)for po in $(_HELP_POFILES); do \
 
769
          if test "x[$](_HELP_V)" = "x0"; then echo "  GEN    $${po}"; fi; \
 
770
          msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
 
771
        done
 
772
 
 
773
$(_HELP_POFILES):
 
774
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
775
        $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
 
776
        $(AM_V_GEN)if ! test -f "[$]@"; then \
 
777
          (cd "$(dir [$]@)" && \
 
778
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
779
            mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
 
780
        else \
 
781
          (cd "$(dir [$]@)" && \
 
782
            $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
 
783
            msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
 
784
            rm "$(notdir [$]@).tmp"); \
 
785
        fi
 
786
 
 
787
$(_HELP_MOFILES): %.mo: %.po
 
788
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
789
        $(AM_V_GEN)msgfmt -o "[$]@" "$<"
 
790
 
 
791
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
 
792
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
 
793
$(_HELP_LC_STAMPS): %.stamp: %.mo
 
794
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
 
795
        $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
 
796
        $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
 
797
        mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
 
798
        if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
 
799
        (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
 
800
        touch "[$]@"
 
801
 
 
802
.PHONY: clean-help
 
803
mostlyclean-am: $(if $(HELP_ID),clean-help)
 
804
clean-help:
 
805
        rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
 
806
 
 
807
EXTRA_DIST ?=
 
808
EXTRA_DIST += $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_POFILES)
 
809
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(_HELP_LINGUAS),$(wildcard $(lc)/$(f))))
 
810
 
 
811
.PHONY: check-help
 
812
check: check-help
 
813
check-help:
 
814
        for lc in C $(_HELP_LINGUAS); do \
 
815
          if test -d "$$lc"; \
 
816
            then d=; \
 
817
            xmlpath="$$lc"; \
 
818
          else \
 
819
            d="$(srcdir)/"; \
 
820
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
821
          fi; \
 
822
          for page in $(HELP_FILES); do \
 
823
            echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
 
824
            $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
 
825
          done; \
 
826
        done
 
827
 
 
828
 
 
829
.PHONY: install-help
 
830
install-data-am: $(if $(HELP_ID),install-help)
 
831
install-help:
 
832
        @for lc in C $(_HELP_LINGUAS); do \
 
833
          $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
 
834
        done
 
835
        @for f in $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_C_EXTRA); do \
 
836
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
837
          if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
 
838
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
839
          if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
 
840
          echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
 
841
          $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
 
842
        done
 
843
        @for f in $(HELP_MEDIA); do \
 
844
          for lc in C $(_HELP_LINGUAS); do \
 
845
            if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
 
846
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
847
            mdir=`dirname "$$f"`; \
 
848
            if test "x$mdir" = "x."; then mdir=""; fi; \
 
849
            if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
 
850
            if test -f "$$d$$lc/$$f"; then \
 
851
              echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
 
852
              $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
 
853
            elif test "x$$lc" != "xC"; then \
 
854
              echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
 
855
              $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
 
856
            fi; \
 
857
          done; \
 
858
        done
 
859
 
 
860
.PHONY: uninstall-help
 
861
uninstall-am: $(if $(HELP_ID),uninstall-help)
 
862
uninstall-help:
 
863
        @for f in $(_HELP_C_FILES) $(_HELP_LC_FILES) $(_HELP_C_EXTRA); do \
 
864
          lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
 
865
          helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
866
          echo "rm -f $$helpdir`basename $$f`"; \
 
867
          rm -f "$$helpdir`basename $$f`"; \
 
868
        done
 
869
        @for f in $(HELP_MEDIA); do \
 
870
          for lc in C $(_HELP_LINGUAS); do \
 
871
            helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
 
872
            echo "rm -f $$helpdir$$f"; \
 
873
            rm -f "$$helpdir$$f"; \
 
874
          done; \
 
875
        done;
 
876
'
 
877
AC_SUBST([YELP_HELP_RULES])
 
878
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
 
879
])
 
880
 
748
881
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
749
882
#
750
883
# This file is free software; the Free Software Foundation