Add make clean

This commit is contained in:
Brian Buller 2021-12-02 11:28:47 -06:00
parent 86fc855c54
commit c17b064461
2 changed files with 11 additions and 5 deletions

View File

@ -15,8 +15,4 @@ aoc-util:
go build -o build/aoc-util cmd/aoc-util/*.go go build -o build/aoc-util cmd/aoc-util/*.go
clean: clean:
rm build/aoc-util ./clean.sh
rm build/helperbot
rm build/plugins/*
rm build/helperbot.service
rm build/helperbot.tgz

10
clean.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
rmE() {
test -f "$1" && rm "$1"
}
rmE build/aoc-util
rmE build/helperbot
rmE build/helperbot.service
rmE build/helperbot.tgz
rm build/plugins/*