Automatically set the absolute path of the program in the wrapper script
[conversations_http_downloader.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..710870f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+bindir ?= $(PWD)
+
+all:
+       sed -e 's#@bindir@#$(bindir)#g' open_wrapper.sh.in > open_wrapper.sh \
+         && chmod +x open_wrapper.sh
+
+clean:
+       rm -f open_wrapper.sh