mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
Add ability to include user makefile rules before main makefile is re… (#802)
* Add ability to include user makefile rules before main makefile is read. #801 Added 2 new files that are optionally included in the main makefile, S_pre.mk and S_post.mk. S_post.mk serves the same purpose as S_overrides.mk. The intent is 1. (19) Have both files present in the current major version. 2. (21) Add warning deprecating S_overrides.mk 3. (23) Actually deprecate S_overrides.mk * Add ability to include user makefile rules before main makefile #802 Moving pre inclusion to after TRICK_HOME is defined. * blank line
This commit is contained in:
parent
f7a7419e0d
commit
cbf8258b6a
@ -155,6 +155,8 @@ ifndef TRICK_HOME
|
|||||||
export TRICK_HOME := SUB_TRICK_HOME
|
export TRICK_HOME := SUB_TRICK_HOME
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
-include S_pre.mk
|
||||||
|
|
||||||
ifneq ($(wildcard ${TRICK_HOME}/share/trick/makefiles/Makefile.common),)
|
ifneq ($(wildcard ${TRICK_HOME}/share/trick/makefiles/Makefile.common),)
|
||||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||||
|
|
||||||
@ -258,6 +260,7 @@ include build/Makefile_swig_deps
|
|||||||
endif
|
endif
|
||||||
-include build/Makefile_overrides
|
-include build/Makefile_overrides
|
||||||
-include S_overrides.mk
|
-include S_overrides.mk
|
||||||
|
-include S_post.mk
|
||||||
|
|
||||||
ifndef MAKE_RESTARTS
|
ifndef MAKE_RESTARTS
|
||||||
REMOVE_MAKE_OUT := $(shell rm -f $(MAKE_OUT))
|
REMOVE_MAKE_OUT := $(shell rm -f $(MAKE_OUT))
|
||||||
|
Loading…
Reference in New Issue
Block a user