aboutsummaryrefslogtreecommitdiff
path: root/rfile
blob: f38ab34fcc204ffe7f2be2a5d98990400f5a3479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# rfile for rfile

# 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
}