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