Skip to content

Commit 830248a

Browse files
hovindoharboe
authored andcommitted
makefile: SUB_MAKE fix
Make OpenROAD-flow-scripts `Makefile` work when invoked with `make --file=$FLOW_DIR/Makefile` and `make --directory $FLOW_DIR` Signed-off-by: Øyvind Harboe <[email protected]>
1 parent e65cfc7 commit 830248a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
THIS_FILE = $(MAKEFILE_LIST)
12
# settings.mk is not under source control. Put variables into this
23
# file to avoid having to adding the to the make command line.
34
-include settings.mk
@@ -549,7 +550,7 @@ endif
549550

550551
UNSET_VARS = for var in $(UNSET_VARIABLES_NAMES); do unset $$var; done
551552

552-
SUB_MAKE = $(MAKE) $(foreach V,$(COMMAND_LINE_ARGS), $(if $($V),$V=$(shell echo "$($V)" | $(FLOW_HOME)/scripts/escape.sh),$V='')) --no-print-directory DESIGN_CONFIG=$(DESIGN_CONFIG)
553+
SUB_MAKE = $(MAKE) $(foreach V,$(COMMAND_LINE_ARGS), $(if $($V),$V=$(shell echo "$($V)" | $(FLOW_HOME)/scripts/escape.sh),$V='')) --no-print-directory --file=$(THIS_FILE) DESIGN_CONFIG=$(DESIGN_CONFIG)
553554
UNSET_AND_MAKE = @bash -c '$(UNSET_VARS); $(SUB_MAKE) $$@' --
554555

555556
$(OBJECTS_DIR)/copyright.txt:

0 commit comments

Comments
 (0)