update README.md
This commit is contained in:
parent
67566c9478
commit
b60a296c24
22
README.md
22
README.md
@ -20,7 +20,27 @@ Add this at the bottom of your build script
|
||||
|
||||
(execute)
|
||||
|
||||
The rules go in between `initialize` and `build`
|
||||
The rules go in between `initialize` and `build`.
|
||||
|
||||
## A Simple Example
|
||||
|
||||
#!/usr/bin/env sh
|
||||
exec guile -s "$0" "$@"
|
||||
!#
|
||||
|
||||
(use-modules (potato make))
|
||||
(initialize)
|
||||
(:= CC "gcc")
|
||||
(:= CFLAGS "-g -O2")
|
||||
|
||||
(: "all" '("foo"))
|
||||
(: "foo" '("foo.o" "bar.o")
|
||||
(~ ($ CC) "-o" $@ $^))
|
||||
(-> ".c" ".o"
|
||||
(~ ($ CC) "-c" $<))
|
||||
(execute)
|
||||
|
||||
## Command-Line Arguments
|
||||
|
||||
This boilerplate loads the library functions and it parses the
|
||||
command-line arguments. The command-line arguments are the following,
|
||||
|
Loading…
Reference in New Issue
Block a user