<commit_before>#
# GNU Makefile:  TerrainApps/Enviro
#

VTP_ROOT = $(shell cd ../..; pwd)

include $(VTP_ROOT)/TerrainApps/Make.defs

IFLAGS = $(shell wx-config --cflags) \
	  -I$(TERRAIN_SDK_DIR)       \
	  -I$(OSG_INC)               \
	  -I$(GDAL_INC)              \
	  -I$(TERRAIN_APPS_DIR)/Enviro/wx/bitmap \
	  -I$(TERRAIN_APPS_DIR)/Enviro/wx/icons

LDIRS  = \
	  $(OSG_LIB)                     \
	  $(VTDATA_INST_DIR)             \
	  $(VTUI_INST_DIR)               \
	  $(VTOSG_INST_DIR)              \
	  $(XMLHELPER_INST_DIR)          \
	  $(SHAPE_LIB)                   \
	  $(PNG_LIB)                     \
	  $(GDAL_LIB)                    \
	  $(NETCDF_LIB)                  \
	  $(X_LIB)                       \
	  $(EXTRA_LDIRS)

SWITCHES := $(SWITCHES) -DUNIX -DVTLIB_OSG=1
CFLAGS   = $(COPT) $(SWITCHES) $(IFLAGS)
CXXFLAGS = $(COPT) $(SWITCHES) $(IFLAGS)
LDFLAGS  = $(LDIRFLAGS) \
	   $(EXTRA_LDFLAGS)

CXXSRC = $(wildcard *.cpp) \
	 $(filter-out wx/StartupDlg0.cpp, $(wildcard wx/*.cpp))
OBJS   = $(CXXSRC:%.cpp=%.o)
EXEC   = wxEnviro
LIBS   = $(shell wx-config --libs) $(shell wx-config --gl-libs) \
	  -lgdal -lvtosg -lvtui -lvtdata -lxmlhelper $(MINI_LIB) \
	  -losgDB -losgText -losgUtil -losg -lnetcdf \
	  $(GLU_LIB) -lGL -lX11 $(EXTRA_LIBS) -lm 

all : $(EXEC)

$(EXEC) : $(OBJS)
	$(LD) -o $(EXEC) $(LDFLAGS) $(OBJS) $(LIBS)

clean :
	rm -rf $(OBJS) $(EXEC).core core ii_files wx/ii_files

clobber :
	rm -rf $(OBJS) $(EXEC).core core ii_files wx/ii_files $(EXEC) $(EXEC).pure

#
# Internationalization steps (iso-8859-1) for Enviro
#

I18N_SOURCES = \
	wx/app.cpp \
	wx/frame.cpp \
	wx/CameraDlg.cpp \
	wx/LayerDlg.cpp \
	wx/LocationDlg.cpp \
	wx/SceneGraphDlg.cpp \
	wx/StartupDlg.cpp \
	wx/TerrManDlg.cpp \
	wx/TParamsDlg.cpp \
	wx/Enviro_wdr.cpp \
	../../TerrainSDK/vtui/vtui_wdr.cpp \
	../../TerrainSDK/vtui/BuildingDlg.cpp

update-pot:
	xgettext --from-code=iso-8859-1 -k_ -o Enviro.pot $(I18N_SOURCES)

#----------

update-af:
	msgmerge --no-fuzzy-matching af/Enviro.po Enviro.pot -o af/Enviro.pox

publish-zh:
	cp zh/Enviro.pox zh/Enviro.po
	msgfmt zh/Enviro.po -o zh/Enviro.mo

update-zh:
	msgmerge --no-fuzzy-matching zh/Enviro.po Enviro.pot -o zh/Enviro.pox

publish-de:
	cp de/Enviro.pox de/Enviro.po
	msgfmt de/Enviro.po -o de/Enviro.mo

update-de:
	msgmerge --no-fuzzy-matching de/Enviro.po Enviro.pot -o de/Enviro.pox

publish-hu:
	cp hu/Enviro.pox hu/Enviro.po
	msgfmt hu/Enviro.po -o hu/Enviro.mo

update-hu:
	msgmerge --no-fuzzy-matching hu/Enviro.po Enviro.pot -o hu/Enviro.pox

publish-pt:
	cp pt/Enviro.pox pt/Enviro.po
	msgfmt pt/Enviro.po -o pt/Enviro.mo

update-pt:
	msgmerge --no-fuzzy-matching pt/Enviro.po Enviro.pot -o pt/Enviro.pox

publish-ro:
	cp ro/Enviro.pox ro/Enviro.po
	msgfmt ro/Enviro.po -o ro/Enviro.mo

publish-sv:
	cp sv/Enviro.pox sv/Enviro.po
	msgfmt sv/Enviro.po -o sv/Enviro.mo

update-sv:
	msgmerge --no-fuzzy-matching sv/Enviro.po Enviro.pot -o sv/Enviro.pox

publish-uk:
	cp en_GB/Enviro.pox en_GB/Enviro.po
	msgfmt en_GB/Enviro.po -o en_GB/Enviro.mo

publish-af:
	cp af/Enviro.pox af/Enviro.po
	msgfmt af/Enviro.po -o af/Enviro.mo

#
# Internationalization steps for Infra (iso-8859-1)
#

I18N_SOURCES_INFRA = \
	wx/Infra/InfraFrame.cpp \
	wx/Infra/InfraDlg.cpp \
	wx/Infra/Infra_wdr.cpp

publish-infra:<commit_msg>updates to i18n targets<commit_after>#
# GNU Makefile:  TerrainApps/Enviro
#

VTP_ROOT = $(shell cd ../..; pwd)

include $(VTP_ROOT)/TerrainApps/Make.defs

IFLAGS = $(shell wx-config --cflags) \
	  -I$(TERRAIN_SDK_DIR)       \
	  -I$(OSG_INC)               \
	  -I$(GDAL_INC)              \
	  -I$(TERRAIN_APPS_DIR)/Enviro/wx/bitmap \
	  -I$(TERRAIN_APPS_DIR)/Enviro/wx/icons

LDIRS  = \
	  $(OSG_LIB)                     \
	  $(VTDATA_INST_DIR)             \
	  $(VTUI_INST_DIR)               \
	  $(VTOSG_INST_DIR)              \
	  $(XMLHELPER_INST_DIR)          \
	  $(SHAPE_LIB)                   \
	  $(PNG_LIB)                     \
	  $(GDAL_LIB)                    \
	  $(NETCDF_LIB)                  \
	  $(X_LIB)                       \
	  $(EXTRA_LDIRS)

SWITCHES := $(SWITCHES) -DUNIX -DVTLIB_OSG=1
CFLAGS   = $(COPT) $(SWITCHES) $(IFLAGS)
CXXFLAGS = $(COPT) $(SWITCHES) $(IFLAGS)
LDFLAGS  = $(LDIRFLAGS) \
	   $(EXTRA_LDFLAGS)

CXXSRC = $(wildcard *.cpp) \
	 $(filter-out wx/StartupDlg0.cpp, $(wildcard wx/*.cpp))
OBJS   = $(CXXSRC:%.cpp=%.o)
EXEC   = wxEnviro
LIBS   = $(shell wx-config --libs) $(shell wx-config --gl-libs) \
	  -lgdal -lvtosg -lvtui -lvtdata -lxmlhelper $(MINI_LIB) \
	  -losgDB -losgText -losgUtil -losg -lnetcdf \
	  $(GLU_LIB) -lGL -lX11 $(EXTRA_LIBS) -lm 

all : $(EXEC)

$(EXEC) : $(OBJS)
	$(LD) -o $(EXEC) $(LDFLAGS) $(OBJS) $(LIBS)

clean :
	rm -rf $(OBJS) $(EXEC).core core ii_files wx/ii_files

clobber :
	rm -rf $(OBJS) $(EXEC).core core ii_files wx/ii_files $(EXEC) $(EXEC).pure

#
# Internationalization steps (iso-8859-1) for Enviro
#

I18N_SOURCES = \
	wx/app.cpp \
	wx/frame.cpp \
	wx/*Dlg.cpp \
	wx/Enviro_wdr.cpp \
	../../TerrainSDK/vtui/vtui_wdr.cpp \
	../../TerrainSDK/vtui/BuildingDlg.cpp

update-pot:
	xgettext --from-code=iso-8859-1 -k_ -o Enviro.pot $(I18N_SOURCES)

#----------
publish-af:
	cp af/Enviro.pox af/Enviro.po
	msgfmt af/Enviro.po -o af/Enviro.mo

update-af:
	msgmerge --no-fuzzy-matching af/Enviro.po Enviro.pot -o af/Enviro.pox

#----------
publish-zh:
	cp zh/Enviro.pox zh/Enviro.po
	msgfmt zh/Enviro.po -o zh/Enviro.mo

update-zh:
	msgmerge --no-fuzzy-matching zh/Enviro.po Enviro.pot -o zh/Enviro.pox

#----------
publish-de:
	cp de/Enviro.pox de/Enviro.po
	msgfmt de/Enviro.po -o de/Enviro.mo

update-de:
	msgmerge --no-fuzzy-matching de/Enviro.po Enviro.pot -o de/Enviro.pox

#----------
publish-hu:
	cp hu/Enviro.pox hu/Enviro.po
	msgfmt hu/Enviro.po -o hu/Enviro.mo

update-hu:
	msgmerge --no-fuzzy-matching hu/Enviro.po Enviro.pot -o hu/Enviro.pox

#----------
publish-pt:
	cp pt/Enviro.pox pt/Enviro.po
	msgfmt pt/Enviro.po -o pt/Enviro.mo

update-pt:
	msgmerge --no-fuzzy-matching pt/Enviro.po Enviro.pot -o pt/Enviro.pox

#----------
publish-ro:
	cp ro/Enviro.pox ro/Enviro.po
	msgfmt ro/Enviro.po -o ro/Enviro.mo

update-ro:
	msgmerge --no-fuzzy-matching ro/Enviro.po Enviro.pot -o ro/Enviro.pox

#----------
publish-sv:
	cp sv/Enviro.pox sv/Enviro.po
	msgfmt sv/Enviro.po -o sv/Enviro.mo

update-sv:
	msgmerge --no-fuzzy-matching sv/Enviro.po Enviro.pot -o sv/Enviro.pox

#----------
publish-uk:
	cp en_GB/Enviro.pox en_GB/Enviro.po
	msgfmt en_GB/Enviro.po -o en_GB/Enviro.mo

#
# Internationalization steps for Infra (iso-8859-1)
#

I18N_SOURCES_INFRA = \
	wx/Infra/InfraFrame.cpp \
	wx/Infra/InfraDlg.cpp \
	wx/Infra/Infra_wdr.cpp

publish-infra:
{'fraction_non_alphanumeric': 0.17162713400815832, 'fraction_numerical': 0.007856171627134008, 'mean_word_length': 2.306693306693307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '488212', 'n_tokens_mistral': 3086, 'n_tokens_neox': 3037, 'n_words': 501}