1
0

Makefile.am 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. SUBDIRS = src po
  2. EXTRA_DIST = config.rpath mkinstalldirs m4/Makefile.in mssh.schemas mssh_clusters.conf
  3. SCHEMAS_FILE = mssh.schemas
  4. schemadir = $(GCONF_SCHEMA_FILE_DIR)
  5. schema_DATA = $(SCHEMAS_FILE)
  6. if GCONF_SCHEMAS_INSTALL
  7. install-data-local:
  8. GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/$(schema_DATA)
  9. endif
  10. man1_MANS = mssh.1
  11. ACLOCAL_AMFLAGS = -I m4
  12. check-gettext:
  13. @if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
  14. "'checking whether to use NLS... yes'!" ; exit 1 ; fi
  15. update-po: check-gettext
  16. @find $(srcdir)/src/ -name "*.c" -print | sort > $(srcdir)/po/POTFILES.in.2 ; \
  17. if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
  18. rm -f $(srcdir)/po/POTFILES.in.2 ; \
  19. else \
  20. mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
  21. fi
  22. cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
  23. update-gmo: check-gettext
  24. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  25. force-update-gmo: check-gettext
  26. touch po/*.po
  27. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  28. force-update-gmo-%: check-gettext
  29. @language=`echo $@ | sed s/force-update-gmo-//` ; \
  30. if test ! -f po/$$language.po ; then echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
  31. touch po/$$language.po ; \
  32. cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
  33. .PHONY: check-gettext update-po update-gmo force-update-gmo