Compare commits
2 Commits
Branch_exp
...
Branch_MAK
| Author | SHA1 | Date | |
|---|---|---|---|
| 73f67667eb | |||
| 98fa2377a8 |
14
.editorconfig
Normal file
14
.editorconfig
Normal file
@ -0,0 +1,14 @@
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
indent_size = 8
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
||||
11
01-Variable_MAKEFILE_LIST/Makefile
Normal file
11
01-Variable_MAKEFILE_LIST/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
makedir := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
$(warning makedir1=$(makedir))
|
||||
|
||||
include dir1/Makefile
|
||||
|
||||
makedir := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
$(warning makedir3=$(makedir))
|
||||
|
||||
all:
|
||||
@echo "Completing the main Makefile"
|
||||
6
01-Variable_MAKEFILE_LIST/dir1/Makefile
Normal file
6
01-Variable_MAKEFILE_LIST/dir1/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
makedir := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
$(warning makedir2=$(makedir))
|
||||
|
||||
|
||||
10
02-Test_set_after_reference/Makefile
Normal file
10
02-Test_set_after_reference/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
PUBLIC_INCVPATH += $(PROJECT_ROOT)/public
|
||||
$(warning "PUBLIC_INCVPATH : $(PUBLIC_INCVPATH), with PROJECT_ROOT not set")
|
||||
|
||||
PROJECT_ROOT:=$(CURDIR)
|
||||
|
||||
$(warning "PUBLIC_INCVPATH : $(PUBLIC_INCVPATH), with PROJECT_ROOT set")
|
||||
|
||||
all:
|
||||
@echo "This is a dummy target to ensure the Makefile is valid."
|
||||
8
Makefile
8
Makefile
@ -1,8 +0,0 @@
|
||||
|
||||
var_a = a
|
||||
|
||||
export var_a
|
||||
|
||||
all:
|
||||
make -C dir1
|
||||
echo "Get var_a=$(var_a)"
|
||||
@ -1,8 +0,0 @@
|
||||
|
||||
|
||||
$(warning var_a=$(var_a))
|
||||
var_a = b
|
||||
|
||||
all:
|
||||
echo "set var_a=b"
|
||||
|
||||
Reference in New Issue
Block a user