summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-06-29 16:59:52 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-06-30 12:20:57 -0400
commitd571da78eaaa8408b4a6be8d8945df93624f41a9 (patch)
tree16c8156bd65477a1317b02688213e9825085647b /Makefile
parent0c58c357d2b3288c4a4502d5ac2ecd34cc441f4f (diff)
downloadtmpoverlay-d571da78eaaa8408b4a6be8d8945df93624f41a9.tar.xz
tmpoverlay-d571da78eaaa8408b4a6be8d8945df93624f41a9.zip
improve userns support, logging, add minification
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..aacc7e9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+prefix ?= /usr/local
+bindir ?= $(prefix)/bin
+
+tmpoverlay: tmpoverlay.sh
+ sed -e '1p;1t;/^ *#.*/d' $< > $@
+ chmod +x $@
+
+clean:
+ rm -f tmpoverlay
+
+install:
+ install -Dm755 tmpoverlay $(DESTDIR)$(bindir)/tmpoverlay
+
+.PHONY: clean install