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