summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2025-07-26 12:50:28 +0300
committerKrow Savcik <krow@savcik.xyz>2025-07-26 12:50:28 +0300
commit9f2884c0dcbd7762c8a6a067174c3ca1f304d9c0 (patch)
tree90d21c6864a5b15b28612bf5ee11d8beb539f87c /Makefile
initial commitHEADmaster
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