summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a4d6d42
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+include config.mk
+
+vtime: vtime.c vtime.h
+ ${CC} vtime.c -o vtime
+
+install: vtime
+ mkdir -p $(PREFIX)/bin
+ mkdir -p $(PREFIX)/include
+ cp -f vtime $(PREFIX)/bin
+ cp -f vtime.h $(PREFIX)/include
+ chmod 755 $(PREFIX)/bin/vtime
+ chmod 644 $(PREFIX)/include/vtime.h
+
+uninstall:
+ rm -f ${PREFIX}/bin/vtime\
+ ${PREFIX}/include/vtime.h
+
+clean:
+ rm -f vtime
+
+.PHONY: install uninstall clean