summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2019-03-11 19:58:15 -0600
committerAaron Ball <nullspoon@oper.io>2019-03-11 19:58:15 -0600
commit5f44a9a40a56fcef522d536d9ec38a2e10efc7d0 (patch)
tree2d9640b5a5fafdaf450c8a7009727dd0a3b315dc
parenta5b63af1e74e0cce65457198eee36689913e1d7c (diff)
downloadupwgen-5f44a9a40a56fcef522d536d9ec38a2e10efc7d0.tar.gz
upwgen-5f44a9a40a56fcef522d536d9ec38a2e10efc7d0.tar.xz
Makefile:Added clean target
The new clean target deletes the obj dir, upwgen binary, and upwgen.1.gz compiled man page if any exists.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e8eb59b..3f46432 100644
--- a/Makefile
+++ b/Makefile
@@ -25,3 +25,8 @@ install:
install -D -m 755 upwgen "$(DESTDIR)/$(PREFIX)/upwgen"
# Install the man page
install -D -m 644 upwgen.1.gz "$(DESTDIR)/$(MANPREFIX)/man1/upwgen.1.gz"
+
+clean:
+ @if [ -d obj ]; then rm -rf obj; fi
+ @if [ -f upwgen ]; then rm -f upwgen; fi
+ @if [ -f upwgen.1.gz ]; then rm -f upwgen.1.gz; fi

Generated by cgit