summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/clock/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2020-12-19 03:49:28 -0600
committerepoch <epoch@enzo.thebackupbox.net>2020-12-19 03:49:28 -0600
commitbc856202d45e117d4f5f5006be2d2387e6799e6a (patch)
tree3c406ee008d24d8d24af29ef847c111599bb6e6c /share/hackvr/examples/clock/Makefile
parent6241f5a8627632242b7cf613bdc0a296ed85b35e (diff)
downloadhackvr-bc856202d45e117d4f5f5006be2d2387e6799e6a.tar.gz
hackvr-bc856202d45e117d4f5f5006be2d2387e6799e6a.zip
changed how the clock example works so it can work stand-alone and be make install'd and used easier by other scripts
Diffstat (limited to 'share/hackvr/examples/clock/Makefile')
-rw-r--r--share/hackvr/examples/clock/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/hackvr/examples/clock/Makefile b/share/hackvr/examples/clock/Makefile
new file mode 100644
index 0000000..ea7944a
--- /dev/null
+++ b/share/hackvr/examples/clock/Makefile
@@ -0,0 +1,11 @@
+PREFIX:=/usr/local
+
+.PHONY: all install
+
+hackvr-clock: run.pre generate.py
+ ./generate.py | cat run.pre /dev/stdin > hackvr-clock
+ chmod +x hackvr-clock
+all: hackvr-clock
+
+install: all
+ install -t $(PREFIX)/bin hackvr-clock