/usr/lib/grass64/include/Make/Script.make is in grass-dev 6.4.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # common dependencies and rules for building scripts
SCRIPTDIR = $(ARCH_DISTDIR)/scripts
STRINGDIR = $(MODULE_TOPDIR)/locale/scriptstrings
SCRIPT = $(SCRIPTDIR)/$(PGM)
include $(MODULE_TOPDIR)/include/Make/Platform.make
include $(MODULE_TOPDIR)/include/Make/Grass.make
include $(MODULE_TOPDIR)/include/Make/Rules.make
SCRIPT_ACTIONS = $(SCRIPT)
ifdef MINGW
SCRIPT_ACTIONS += $(BIN)/$(PGM).bat
endif
script: $(SCRIPT_ACTIONS)
$(SCRIPT): $(PGM)
if [ ! -d $(SCRIPTDIR) ]; then $(MKDIR) $(SCRIPTDIR); fi
$(INSTALL) $(PGM) $(SCRIPT)
$(MAKE) htmlscript scriptstrings
$(MAKE) mancmd
$(BIN)/$(PGM).bat: $(MODULE_TOPDIR)/scripts/windows_launch.bat
sed -e "s#SCRIPT_NAME#$(PGM)#" $(MODULE_TOPDIR)/scripts/windows_launch.bat > $@
unix2dos $@
# Make strings in a fake .c file so that they get picked up by the internationalizer stuff.
# These are only the options (parser.c) type things.
# See locale/scriptstrings/README for more information
scriptstrings = \
GISRC=$(RUN_GISRC) \
GISBASE=$(RUN_GISBASE) \
PATH=$(BIN):$$PATH \
$(LD_LIBRARY_PATH_VAR)="$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
g.parser -t $(1) | sed s/\"/\\\\\"/g | sed 's/.*/_("&")/' > \
$(STRINGDIR)/$(PGM)_to_translate.c ; true
$(STRINGDIR)/$(PGM)_to_translate.c: $(PGM)
$(call scriptstrings,$(PGM))
scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
install:
$(INSTALL) $(ARCH_DISTDIR)/scripts/$(PGM)$(EXE) $(INST_DIR)/scripts/
$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/
$(INSTALL_DATA) $(ARCH_DISTDIR)/man/man1/$(PGM).1 $(INST_DIR)/man/man1/
|