diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-06-01 17:29:59 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-06-01 17:29:59 -0400 |
commit | 564ba31acf6fa4df0c3d3c528ee0011e5631fdbc (patch) | |
tree | b69600cc4d8552048633fa715ecd272be249421e | |
parent | 992477af8ca6f91b2812b454c135bd87bfefbc2c (diff) |
generalized destdir
-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); |