/usr/lib/grass70/include/Make/Multi.make is in grass-dev 7.0.3-1build1.
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 | PACKAGE = "grassmods"
include $(MODULE_TOPDIR)/include/Make/Vars.make
include $(MODULE_TOPDIR)/include/Make/Rules.make
include $(MODULE_TOPDIR)/include/Make/Html.make
include $(MODULE_TOPDIR)/include/Make/Compile.make
PROGFILES = $(patsubst %,$(BIN)/%$(EXE),$(PROGRAMS))
HTMLFILES = $(patsubst %,$(HTMLDIR)/%.html,$(PROGRAMS))
MANFILES = $(patsubst %,$(MANDIR)/%.$(MANSECT),$(PROGRAMS))
multi: progs htmlmulti
progs: $(PROGFILES)
ifdef CROSS_COMPILING
htmlmulti:
else
htmlmulti: $(HTMLFILES) $(MANFILES)
endif
$(BIN)/%$(EXE): $(DEPENDENCIES)
$(call linker)
define objs_rule
$(BIN)/$(1)$(EXE): $$(patsubst %.o,$(OBJDIR)/%.o,$$($$(subst .,_,$(1)_OBJS)))
$(HTMLDIR)/$(1).html: $(1).html $(1).tmp.html $(BIN)/$(1)$(EXE)
$(1).tmp.html: $(BIN)/$(1)$(EXE)
$$(call htmldesc,$$<,$$@)
.INTERMEDIATE: $(1).tmp.html
endef
$(foreach prog,$(PROGRAMS),$(eval $(call objs_rule,$(prog))))
|