From 564ba31acf6fa4df0c3d3c528ee0011e5631fdbc Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Mon, 1 Jun 2020 17:29:59 -0400
Subject: generalized destdir
---
Makefile | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
(limited to 'Makefile')
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 $@
--
cgit