Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
camlspotter committed Jul 4, 2017
1 parent 18e8314 commit c8b7f51
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
1 change: 0 additions & 1 deletion omake.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,3 @@ Reference manual の "Temporary directories" に `CREATE_SUBDIRS` という秘
勝手に掘ってくれるとある。ひどい。



58 changes: 58 additions & 0 deletions omake/OMakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,61 @@ export1(foo) =
export1(a)
eprintln(foo=$(foo))

X=1
GETX() =
return $(X)
X=2
eprintln($(GETX))


X=1
SETX() =
X=2
eprintln($(X))
return 1
r=$(SETX)
eprintvln($(r))
eprintln($(X))

MAKEY()=
Y = 3
export Y
MAKEY()
eprintln($(Y))

F(y)=
export X
X=1
if $(y)
X=2
else
X=3
F(true)
eprintln(X=$(X))

X=1
F(y)=
export X
X=2
return $(y)
Z=$(F 1)
eprintln(Z=$(Z) X=$(X))

X=1
F(y)=
export X
X=2
value $(y)
Z=$(F 1)
eprintln(Z=$(Z) X=$(X))

%.ext1: %.ext2

%a: %b
cp $< $@

%a: %
cp $< $@



0 comments on commit c8b7f51

Please sign in to comment.