diff options
Diffstat (limited to 'rfile')
| -rw-r--r-- | rfile | 28 |
1 files changed, 23 insertions, 5 deletions
@@ -1,9 +1,27 @@ # rfile for rfile -@: hello from rfile -all { - cc -o rf rf.c -Wall -Wextra -pedantic - sudo install -Dm755 rf /usr/bin/rf - rm ./rf +# greet the polite visitor with a box! +@:! hello from rfile! + +# variables +@cc=gcc +@inp=rf.c +@out=rf +@opts=-Wall -Wextra -pedantic -std=c99 + +# build +@cc @inp -o @out @opts + +# install section +install { + rf + @: installing rf.. + sudo install -Dm755 @out /usr/bin/@out + rf clean +} + +# clean section +clean { + rm @out } |