mirror of
https://github.com/simh/simh.git
synced 2026-01-14 15:45:18 +00:00
makefile: avoid using an intermediate file to get a newline in a variable
This commit is contained in:
parent
db5a0dc4d3
commit
2c9eb951ad
9
makefile
9
makefile
@ -2923,10 +2923,11 @@ else # end of primary make recipies
|
||||
OBJS = $(addsuffix .o,$(addprefix $(BLDDIR)/,$(basename $(notdir $(DEPS)))))
|
||||
$(shell $(MKDIR) $(call pathfix,$(BLDDIR)))
|
||||
ifeq (,$(findstring 3.,$(GNUMakeVERSION)))
|
||||
$(file >$(call pathfix,$(BLDDIR)/NEWLINE.file),)
|
||||
$(file >>$(call pathfix,$(BLDDIR)/NEWLINE.file),)
|
||||
NEWLINE = $(file < $(call pathfix,$(BLDDIR)/NEWLINE.file))
|
||||
$(shell $(RM) $(call pathfix,$(BLDDIR)/NEWLINE.file))
|
||||
define BARLINE
|
||||
|
|
||||
|
|
||||
endef
|
||||
NEWLINE=$(subst |,,$(BARLINE))
|
||||
MAKE_INFO = $(foreach VAR,CC OPTS DEPS LDFLAGS DIRS BUILD_SEPARATE,$(VAR)=$($(VAR))$(NEWLINE))
|
||||
ifneq ($(MAKE_INFO),$(file <$(call pathfix,$(BLDDIR)/Make.info))$(NEWLINE))
|
||||
# Different or no prior options, so start from scratch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user