summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..1e55dd5
--- /dev/null
+++ b/configure
@@ -0,0 +1,31 @@
1#!/bin/sh
2
3for arg in $@; do
4 case $arg in
5 --prefix=*)
6 destdir=$(echo $arg | cut -d= -f2-)
7 ;;
8 *)
9 ;;
10 esac
11done
12
13if [ -z "$destdir" ]; then
14 destdir="/usr"
15fi
16
17cat <<MAKEFILE > Makefile
18# Generated on $(date) by $(whoami)@$(hostname)
19
20DESTDIR = $destdir
21
22install:
23 @mkdir -vp "\$(DESTDIR)/bin/"
24 @install -vm 755 dmenu_app "\$(DESTDIR)/bin/"
25
26uninstall:
27 @-rm -fv -- '\$(DESTDIR)/bin/dmenu_app'
28
29.PHONY: install uninstall
30MAKEFILE
31# vim: set ts=8 sw=8 tw=0 noet :