|
@@ -6,11 +6,13 @@ STRINGDIR = $(MODULE_TOPDIR)/locale/scriptstrings
|
|
|
|
|
|
SCRIPT = $(SCRIPTDIR)/$(PGM)
|
|
SCRIPT = $(SCRIPTDIR)/$(PGM)
|
|
|
|
|
|
|
|
+HTMLSRC = $(SCRIPT)
|
|
|
|
+
|
|
include $(MODULE_TOPDIR)/include/Make/Platform.make
|
|
include $(MODULE_TOPDIR)/include/Make/Platform.make
|
|
include $(MODULE_TOPDIR)/include/Make/Grass.make
|
|
include $(MODULE_TOPDIR)/include/Make/Grass.make
|
|
include $(MODULE_TOPDIR)/include/Make/Rules.make
|
|
include $(MODULE_TOPDIR)/include/Make/Rules.make
|
|
|
|
|
|
-SCRIPT_ACTIONS = $(SCRIPT)
|
|
|
|
|
|
+SCRIPT_ACTIONS = $(SCRIPT) html scriptstrings
|
|
ifdef MINGW
|
|
ifdef MINGW
|
|
SCRIPT_ACTIONS += $(BIN)/$(PGM).bat
|
|
SCRIPT_ACTIONS += $(BIN)/$(PGM).bat
|
|
endif
|
|
endif
|
|
@@ -20,12 +22,10 @@ script: $(SCRIPT_ACTIONS)
|
|
$(SCRIPTDIR)/%: %.py
|
|
$(SCRIPTDIR)/%: %.py
|
|
if [ ! -d $(SCRIPTDIR) ]; then $(MKDIR) $(SCRIPTDIR); fi
|
|
if [ ! -d $(SCRIPTDIR) ]; then $(MKDIR) $(SCRIPTDIR); fi
|
|
$(INSTALL) $< $@
|
|
$(INSTALL) $< $@
|
|
- $(MAKE) htmlscript scriptstrings
|
|
|
|
|
|
|
|
$(SCRIPTDIR)/%: %
|
|
$(SCRIPTDIR)/%: %
|
|
if [ ! -d $(SCRIPTDIR) ]; then $(MKDIR) $(SCRIPTDIR); fi
|
|
if [ ! -d $(SCRIPTDIR) ]; then $(MKDIR) $(SCRIPTDIR); fi
|
|
$(INSTALL) $< $@
|
|
$(INSTALL) $< $@
|
|
- $(MAKE) htmlscript scriptstrings
|
|
|
|
|
|
|
|
$(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
|
|
$(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
|
|
sed -e "s#SCRIPT_NAME#$(PGM)#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
|
|
sed -e "s#SCRIPT_NAME#$(PGM)#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
|
|
@@ -34,16 +34,14 @@ $(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
|
|
# These are only the options (parser.c) type things.
|
|
# These are only the options (parser.c) type things.
|
|
# See locale/scriptstrings/README for more information
|
|
# See locale/scriptstrings/README for more information
|
|
|
|
|
|
-scriptstrings = \
|
|
|
|
|
|
+$(STRINGDIR)/$(PGM)_to_translate.c: $(PGM)
|
|
GISRC=$(RUN_GISRC) \
|
|
GISRC=$(RUN_GISRC) \
|
|
GISBASE=$(RUN_GISBASE) \
|
|
GISBASE=$(RUN_GISBASE) \
|
|
PATH=$(BIN):$$PATH \
|
|
PATH=$(BIN):$$PATH \
|
|
$(LD_LIBRARY_PATH_VAR)="$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
|
|
$(LD_LIBRARY_PATH_VAR)="$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
|
|
- g.parser -t $(1) | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > \
|
|
|
|
|
|
+ g.parser -t $(PGM) | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > \
|
|
$(STRINGDIR)/$(PGM)_to_translate.c ; true
|
|
$(STRINGDIR)/$(PGM)_to_translate.c ; true
|
|
|
|
|
|
-$(STRINGDIR)/$(PGM)_to_translate.c: $(PGM)
|
|
|
|
- $(call scriptstrings,$(PGM))
|
|
|
|
-
|
|
|
|
scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
|
|
scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
|
|
|
|
|
|
|
|
+.PHONY: script htmlscript scriptstrings
|