blob: 1e55dd572bf60b1a943c4a64af86340714f7e3ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
for arg in $@; do
case $arg in
--prefix=*)
destdir=$(echo $arg | cut -d= -f2-)
;;
*)
;;
esac
done
if [ -z "$destdir" ]; then
destdir="/usr"
fi
cat <<MAKEFILE > Makefile
# Generated on $(date) by $(whoami)@$(hostname)
DESTDIR = $destdir
install:
@mkdir -vp "\$(DESTDIR)/bin/"
@install -vm 755 dmenu_app "\$(DESTDIR)/bin/"
uninstall:
@-rm -fv -- '\$(DESTDIR)/bin/dmenu_app'
.PHONY: install uninstall
MAKEFILE
# vim: set ts=8 sw=8 tw=0 noet :
|