File: Makefile.ref

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (114 lines) | stat: -rw-r--r-- 10,358 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<Comment># comment</Comment><br/>
<Normal></Normal><br/>
<Keyword>include</Keyword><Normal> Makefile.in</Normal><br/>
<Keyword>-include</Keyword><Normal> Makefile.doesntexist</Normal><br/>
<Normal></Normal><br/>
<SpecialTarget>.PHONY:</SpecialTarget><Prereq> all</Prereq><br/>
<Normal></Normal><br/>
<Target>all</Target><TargetSeparator>:</TargetSeparator><Prereq> target</Prereq><br/>
<Normal></Normal><br/>
<Variable>foo</Variable><Normal> </Normal><Operator>=</Operator><String> bar </String><Operator>$(</Operator><Variable>var</Variable><Operator>)</Operator><String> </String><Operator>\</Operator><br/>
<String>    </String><Operator>$(</Operator><Variable>baz</Variable><Operator>)</Operator><String> quux</String><br/>
<Normal></Normal><br/>
<ControlFlow>ifeq</ControlFlow><Normal> (</Normal><Operator>$(</Operator><Variable>CC</Variable><Operator>)</Operator><Normal>,gcc)</Normal><br/>
<Normal>    </Normal><Variable>bla</Variable><Operator>=$(</Operator><Keyword>call</Keyword><FuncParam> func</FuncParam><Keyword>,</Keyword><FuncParam>param1</FuncParam><Keyword>,</Keyword><FuncParam>param2</FuncParam><Operator>)</Operator><br/>
<ControlFlow>else</ControlFlow><Normal> </Normal><ControlFlow>ifeq</ControlFlow><Normal> </Normal><String>"x"</String><Normal> </Normal><String>"y"</String><br/>
<Normal>    </Normal><Operator>$(</Operator><Keyword>error</Keyword><FuncParam> this seems wrong</FuncParam><Operator>)</Operator><br/>
<ControlFlow>else</ControlFlow><br/>
<Normal>    </Normal><Variable>libs</Variable><Operator>=$(</Operator><Variable>normal_libs</Variable><Operator>)</Operator><br/>
<ControlFlow>endif</ControlFlow><br/>
<Normal></Normal><br/>
<Target>target1</Target><TargetSeparator>:</TargetSeparator><br/>
<Error>        </Error><Normal>error</Normal><br/>
<Normal></Normal><br/>
<Target>target2</Target><TargetSeparator>:</TargetSeparator><Prereq> bla.cpp </Prereq><Operator>$@</Operator><br/>
<Normal>	</Normal><Operator>$(</Operator><Variable>CC</Variable><Operator>)</Operator><Normal> bla.c -o bla.o</Normal><br/>
<Normal>	</Normal><Operator>$(</Operator><Variable>CC</Variable><Operator>)</Operator><Normal> bla.o </Normal><Operator>$<</Operator><Normal> </Normal><Operator>\</Operator><br/>
<Normal>	    </Normal><Operator>-</Operator><Silent>o bla.exe</Silent><br/>
<Normal>	</Normal><Operator>@</Operator><Silent>echo </Silent><String>"hello"</String><Silent> </Silent><Operator>\</Operator><br/>
<Silent>  bla bla</Silent><br/>
<Normal>	echo </Normal><String>"hello"</String><Normal> </Normal><Operator>\</Operator><br/>
<Normal>  bla bla</Normal><br/>
<Normal></Normal><br/>
<Target>target3</Target><TargetSeparator>:</TargetSeparator><Prereq> </Prereq><Operator>;</Operator><Normal> </Normal><Operator>@</Operator><Silent>echo ’hello </Silent><Operator>\</Operator><br/>
<Silent>world’ ; echo </Silent><String>"hello </String><Operator>\</Operator><br/>
<String>world"</String><br/>
<Normal>	</Normal><Operator>@</Operator><Silent>echo </Silent><String>"hello"</String><br/>
<Normal></Normal><br/>
<Target>target4</Target><TargetSeparator>:</TargetSeparator><Prereq> </Prereq><Operator>;</Operator><Normal> echo ’hello </Normal><Operator>\</Operator><br/>
<Normal>world’ ; echo </Normal><String>"hello </String><Operator>\</Operator><br/>
<String>world"</String><br/>
<Normal>	echo </Normal><String>"hello"</String><br/>
<Normal></Normal><br/>
<Target>target5 </Target><Operator>\</Operator><br/>
<Target>target6 </Target><Operator>\</Operator><br/>
<Target>target7 </Target><TargetSeparator>&::</TargetSeparator><br/>
<Normal>	</Normal><Operator>@</Operator><Silent>echo </Silent><String>"hello"</String><br/>
<Comment># this should not break the rule</Comment><br/>
<Normal>  </Normal><Comment># ifndef is a command</Comment><br/>
<Normal>	ifndef</Normal><br/>
<Normal></Normal><br/>
<Comment># String Substitution</Comment><br/>
<Variable>VAR</Variable><Normal> </Normal><Operator>:=</Operator><String> </String><Operator>$(</Operator><Variable>ANOTHER_VAR</Variable><RealOperator>:</RealOperator><VarModifier>%</VarModifier><RealOperator>=</RealOperator><VarModifier>%+1</VarModifier><Operator>)</Operator><br/>
<Normal></Normal><br/>
<Comment># Variable Assignment</Comment><br/>
<Variable>RELAXED</Variable><Normal> </Normal><Operator>::=</Operator><String> mello</String><br/>
<Variable>rempl</Variable><Normal> </Normal><Operator>:=</Operator><String> x</String><br/>
<Variable>foo</Variable><Normal> </Normal><Operator>:=</Operator><String> a b c</String><br/>
<Variable>bar</Variable><Normal> </Normal><Operator>:=</Operator><String> foo</String><br/>
<Variable>hello</Variable><Normal> </Normal><Operator>:=</Operator><String> </String><Operator>$($(</Operator><Variable>bar</Variable><Operator>)</Operator><RealOperator>:</RealOperator><VarModifier>a</VarModifier><RealOperator>=</RealOperator><Operator>$(</Operator><Variable>rempl</Variable><Operator>))</Operator><br/>
<Variable>my??var</Variable><Operator>=</Operator><String>value</String><br/>
<Variable>var?</Variable><Operator>?=</Operator><String>value</String><br/>
<Variable>var</Variable><Operator>?=</Operator><String>value</String><br/>
<Variable>var?</Variable><Normal> </Normal><Operator>=</Operator><String> value</String><br/>
<Variable>var</Variable><Normal> </Normal><Operator>:::=</Operator><String> value</String><br/>
<Variable>var</Variable><Normal> </Normal><Operator>::=</Operator><String> value</String><br/>
<Variable>var</Variable><Normal> </Normal><Operator>+=</Operator><String> value</String><br/>
<Variable>var</Variable><Normal> </Normal><Operator>!=</Operator><String> value</String><br/>
<Normal>  </Normal><Variable>var</Variable><Normal> </Normal><Operator>=</Operator><String> value\#nocomment</String><br/>
<Normal>  </Normal><Variable>var</Variable><Normal> </Normal><Operator>=</Operator><String> value</String><Comment>#comment</Comment><br/>
<Normal>  </Normal><Variable>var</Variable><Normal> </Normal><Operator>=</Operator><String> value;value2</String><br/>
<Keyword>override</Keyword><Normal> </Normal><Variable>var </Variable><Operator>=</Operator><String> a</String><br/>
<Normal></Normal><br/>
<Keyword>define</Keyword><Normal> </Normal><Variable>var</Variable><Normal> </Normal><Operator>:::=</Operator><br/>
<String>bar</String><br/>
<Keyword>endef</Keyword><br/>
<Normal></Normal><br/>
<Keyword>override</Keyword><Normal> </Normal><Keyword>define</Keyword><Normal> </Normal><Variable>var</Variable><Normal> </Normal><Operator>:::=</Operator><br/>
<String>bar</String><br/>
<Keyword>endef</Keyword><br/>
<Normal></Normal><br/>
<Keyword>undefine</Keyword><Variable> var</Variable><br/>
<Keyword>override</Keyword><Normal> </Normal><Keyword>undefine</Keyword><Variable> var</Variable><br/>
<Normal></Normal><br/>
<Keyword>export</Keyword><Variable> foo bar</Variable><br/>
<Keyword>export</Keyword><Variable> foo </Variable><Operator>=</Operator><String> bar</String><br/>
<Keyword>unexport</Keyword><Variable> foo bar</Variable><br/>
<Normal></Normal><br/>
<Target>prog</Target><TargetSeparator>:</TargetSeparator><Prereq> </Prereq><Keyword>private</Keyword><Variable> EXTRA_CFLAGS </Variable><Operator>=</Operator><String> -L/usr/local/lib</String><br/>
<Target>prog</Target><TargetSeparator>:</TargetSeparator><Prereq> </Prereq><Variable>CFLAGS</Variable><Normal> </Normal><Operator>=</Operator><String> -g</String><br/>
<Target>prog</Target><TargetSeparator>:</TargetSeparator><Prereq> a.o b.o</Prereq><br/>
<Normal></Normal><br/>
<Comment># Conditionals</Comment><br/>
<Variable>bar</Variable><Normal> </Normal><Operator>=</Operator><br/>
<Variable>foo</Variable><Normal> </Normal><Operator>=</Operator><String> </String><Operator>$(</Operator><Variable>bar</Variable><Operator>)</Operator><br/>
<ControlFlow>ifdef</ControlFlow><Normal> bar</Normal><br/>
<Variable>frobozz</Variable><Normal> </Normal><Operator>=</Operator><String> yes</String><br/>
<ControlFlow>else</ControlFlow><Normal> </Normal><ControlFlow>ifdef</ControlFlow><Normal> foo</Normal><br/>
<Variable>frobozz</Variable><Normal> </Normal><Operator>=</Operator><String> no</String><br/>
<ControlFlow>endif</ControlFlow><br/>
<Normal></Normal><br/>
<Variable>error_type</Variable><Normal> </Normal><Operator>:=</Operator><String> 0</String><br/>
<Target>check</Target><TargetSeparator>:</TargetSeparator><br/>
<ControlFlow>ifeq</ControlFlow><Normal> (</Normal><Operator>$(</Operator><Variable>error_type</Variable><Operator>)</Operator><Normal>,0)</Normal><br/>
<ControlFlow>else</ControlFlow><Normal> </Normal><ControlFlow>ifeq</ControlFlow><Normal> (</Normal><Operator>$(</Operator><Variable>error_type</Variable><Operator>)</Operator><Normal>,1)</Normal><br/>
<ControlFlow>else</ControlFlow><Normal> </Normal><ControlFlow>ifeq</ControlFlow><Normal> (</Normal><Operator>$(</Operator><Variable>error_type</Variable><Operator>)</Operator><Normal>,2)</Normal><br/>
<ControlFlow>else</ControlFlow><Normal> </Normal><ControlFlow>ifeq</ControlFlow><Normal> (</Normal><Operator>$(</Operator><Variable>error_type</Variable><Operator>)</Operator><Normal>,3)</Normal><br/>
<ControlFlow>endif</ControlFlow><br/>
<Normal></Normal><br/>
<Operator>$(</Operator><Keyword>info</Keyword><FuncParam> </FuncParam><String>"'"</String><Operator>)</Operator><br/>
<Operator>$(</Operator><Keyword>info</Keyword><FuncParam> </FuncParam><String>'"'</String><Operator>)</Operator><br/>
<Operator>$(</Operator><Keyword>info</Keyword><FuncParam> </FuncParam><Operator>$(</Operator><Variable>??</Variable><Operator>))</Operator><br/>
<Normal></Normal><br/>
<Operator>$(</Operator><Keyword>eval</Keyword><FuncParam> </FuncParam><Operator>$(</Operator><Keyword>call</Keyword><FuncParam> Variable_rule</FuncParam><Keyword>,</Keyword><FuncParam>target/compile_flags</FuncParam><Keyword>,</Keyword><Operator>$$</Operator><FuncParam>{CXX} </FuncParam><Operator>$$</Operator><FuncParam>(CXXFLAGS)</FuncParam><Operator>))</Operator><br/>
<Operator>$(</Operator><Keyword>eval</Keyword><FuncParam> </FuncParam><Operator>${</Operator><Keyword>call</Keyword><FuncParam> Variable_rule</FuncParam><Keyword>,</Keyword><FuncParam>target/link_flags</FuncParam><Keyword>,</Keyword><Operator>$$</Operator><FuncParam>(CXX) </FuncParam><Operator>$$</Operator><FuncParam>(LDFLAGS) </FuncParam><Operator>$$</Operator><FuncParam>{LDLIBS}</FuncParam><Operator>})</Operator><br/>