aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
-rwxr-xr-xminimun.orig (renamed from minimun)2
2 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0564cd6..4d25d65 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,19 @@
.POSIX:
-DESTDIR=/usr/lib/minimun
+DESTDIR=/home/minimun/minimun
-install: $(DESTDIR)
+minimun: minimun.orig
+ sed 's:%%DEST%%:$(DESTDIR):' minimun.orig > minimun
+
+clean:
+ rm minimun
+
+install: $(DESTDIR) minimun
cp -t $(DESTDIR) minimun format.tex logo.png
-
+
+uninstall:
+ rm $(DESTDIR)/{minimun,format.tex,logo.png}
+ rmdir -p $(DESTDIR)
+
$(DESTDIR):
- mkdir -pv $@
+ mkdir -p $@
diff --git a/minimun b/minimun.orig
index 10d4c81..bf07a25 100755
--- a/minimun
+++ b/minimun.orig
@@ -5,7 +5,7 @@ use warnings;
use IPC::Run qw(run);
use Time::HiRes qw( time );
-chdir('/usr/lib/minimun');
+chdir('%%DEST%%');
my ($buffer, @pairs, $pair, $name, $val, %FORM);