]> git.lyx.org Git - lyx.git/blobdiff - development/MacOSX/Makefile.am
installer: prepare for next releases
[lyx.git] / development / MacOSX / Makefile.am
index 895e12e9c6ad90b5ec23315de275261c14beb18f..9282d86a81e9d5b6821743a87bc542ee21c178dc 100644 (file)
@@ -1,5 +1,7 @@
 include $(top_srcdir)/config/common.am
 
+LINGUAS = $(srcdir)/../../po/LINGUAS
+
 SUBDIRS = spotlight
 
 bundledir = ${prefix}/Contents
@@ -9,3 +11,9 @@ dist_bin_SCRIPTS = lyxeditor
 
 dist_pkgdata_DATA = COPYING LyXapp.icns LyX.icns lyxrc.dist
 
+
+install-data-hook:
+       LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" $(LINGUAS)`; \
+       for f in $$LINGUAS_ ; do \
+         $(MKDIR_P) $(pkgdatadir)/$$f.lproj ; \
+       done