diff options
-rw-r--r-- | Makefile | 18 | ||||
-rwxr-xr-x | minimun.orig (renamed from minimun) | 2 |
2 files changed, 15 insertions, 5 deletions
@@ -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 $@ @@ -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); |