aboutsummaryrefslogtreecommitdiff
path: root/po/Makefile.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile.in.in')
-rw-r--r--po/Makefile.in.in53
1 files changed, 10 insertions, 43 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 4e5c700e..38c293d2 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -18,12 +18,8 @@ SHELL = /bin/sh
18@SET_MAKE@ 18@SET_MAKE@
19 19
20srcdir = @srcdir@ 20srcdir = @srcdir@
21# Modified to fit MHD needs 21top_srcdir = @top_srcdir@
22top_po_srcdir = @top_srcdir@ 22VPATH = @srcdir@
23top_srcdir = @top_srcdir@/..
24top_po_builddir = $(top_builddir)/po
25# See '$(POTFILES):' rule
26VPATH = @srcdir@:@srcdir@/po
27 23
28prefix = @prefix@ 24prefix = @prefix@
29exec_prefix = @exec_prefix@ 25exec_prefix = @exec_prefix@
@@ -159,7 +155,6 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
159# The determination of whether the package xyz is a GNU one is based on the 155# The determination of whether the package xyz is a GNU one is based on the
160# heuristic whether some file in the top level directory mentions "GNU xyz". 156# heuristic whether some file in the top level directory mentions "GNU xyz".
161# If GNU 'find' is available, we avoid grepping through monster files. 157# If GNU 'find' is available, we avoid grepping through monster files.
162# Modified to fit MHD needs
163$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed 158$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
164 package_gnu="$(PACKAGE_GNU)"; \ 159 package_gnu="$(PACKAGE_GNU)"; \
165 test -n "$$package_gnu" || { \ 160 test -n "$$package_gnu" || { \
@@ -188,19 +183,19 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
188 fi; \ 183 fi; \
189 case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ 184 case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
190 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ 185 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
191 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_po_srcdir) \ 186 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
192 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ 187 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
193 --files-from=$(srcdir)/POTFILES.in \ 188 --files-from=$(srcdir)/POTFILES.in \
194 --copyright-holder='$(COPYRIGHT_HOLDER)' \ 189 --copyright-holder='$(COPYRIGHT_HOLDER)' \
195 --msgid-bugs-address="$$msgid_bugs_address" \ 190 --msgid-bugs-address="$$msgid_bugs_address" \
196 ;; \ 191 ;; \
197 *) \ 192 *) \
198 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_po_srcdir) \ 193 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
199 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ 194 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
200 --files-from=$(srcdir)/POTFILES.in \ 195 --files-from=$(srcdir)/POTFILES.in \
201 --copyright-holder='$(COPYRIGHT_HOLDER)' \ 196 --copyright-holder='$(COPYRIGHT_HOLDER)' \
202 --package-name="$${package_prefix}@PACKAGE@" \ 197 --package-name="$${package_prefix}@PACKAGE@" \
203 --package-version='$(VERSION)' \ 198 --package-version='@VERSION@' \
204 --msgid-bugs-address="$$msgid_bugs_address" \ 199 --msgid-bugs-address="$$msgid_bugs_address" \
205 ;; \ 200 ;; \
206 esac 201 esac
@@ -378,51 +373,24 @@ check: all
378 373
379info dvi ps pdf html tags TAGS ctags CTAGS ID: 374info dvi ps pdf html tags TAGS ctags CTAGS ID:
380 375
381# Modified for MHD
382mostlyclean: 376mostlyclean:
383 rm -f remove-potcdate.sed 377 rm -f remove-potcdate.sed
384 rm -f stamp-poT 378 rm -f stamp-poT
385 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po 379 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
386 rm -fr *.o 380 rm -fr *.o
387 rm -fr po
388 381
389clean: mostlyclean 382clean: mostlyclean
390 383
391# Modified to fit MHD needs
392distclean: clean 384distclean: clean
393 rm -f Makefile Makefile.in POTFILES *.mo 385 rm -f Makefile Makefile.in POTFILES *.mo
394 rm -f config.status config.cache config.log configure.lineno config.status.lineno stamp-po
395 386
396# Modified to fit MHD needs
397maintainer-clean: distclean 387maintainer-clean: distclean
398 @echo "This command is intended for maintainers to use;" 388 @echo "This command is intended for maintainers to use;"
399 @echo "it deletes files that may require special tools to rebuild." 389 @echo "it deletes files that may require special tools to rebuild."
400 rm -f $(GMOFILES) 390 rm -f stamp-po $(GMOFILES)
401 391
402distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 392distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
403 393dist distdir:
404# Added for MHD
405# If source path is in absolute form, POTFILES generated with correct path,
406# but if source path in relative form (forced by 'configure' for inplace builds)
407# then POTFILES is generated with extra '..' ('po-directories' in config.status
408# think that '.' is subdirectory and add additional '..' to path to source files)
409# This rule create additional 'po' subdirectory which is included in VPATH.
410$(POTFILES):
411 @ case "$(srcdir)" in \
412 /* ) : ;; \
413 * ) @mkdir_p@ po ;; \
414 esac
415
416# Modified to fit MHD needs
417mkdistdir:
418 @ $(mkdir_p) $(distdir)
419 @ case "$(srcdir)" in \
420 /* ) : ;; \
421 * ) @mkdir_p@ po ;; \
422 esac
423
424# Modified to fit MHD needs
425dist distdir: mkdistdir
426 test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) 394 test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS)
427 @$(MAKE) dist2 395 @$(MAKE) dist2
428# This is a separate target because 'update-po' must be executed before. 396# This is a separate target because 'update-po' must be executed before.
@@ -504,10 +472,9 @@ update-gmo: Makefile $(GMOFILES)
504# because execution permission bits may not work on the current file system. 472# because execution permission bits may not work on the current file system.
505# Use @SHELL@, which is the shell determined by autoconf for the use by its 473# Use @SHELL@, which is the shell determined by autoconf for the use by its
506# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. 474# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
507# Note: Fixed missging 'srcdir', Modified to fit MHD needs 475Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
508Makefile: $(srcdir)/Makefile.in.in $(srcdir)/Makevars $(top_po_builddir)/config.status @POMAKEFILEDEPS@ 476 cd $(top_builddir) \
509 cd $(top_po_builddir) \ 477 && @SHELL@ ./config.status $(subdir)/$@.in po-directories
510 && @SHELL@ ./config.status ./$@.in po-directories
511 478
512force: 479force:
513 480