16 lines
244 B
Scheme
16 lines
244 B
Scheme
|
#!/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)
|