From 86c96011c090a8d8304c28043acaf13cdb37f28e Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sat, 25 Jul 2020 14:11:27 -0400
Subject: rpm installs index.html
---
Makefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
index 37ce858..73cf841 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,10 @@
DESTDIR=/home/minimun/minimun
VER=1.1
+WEBLOC=/minimun
+SYSWEBROOT=/var/www/html
+WEBROOT=$(SYSWEBROOT)$(WEBLOC)
+DIRS=$(DESTDIR) $(WEBROOT)
all: format.tex minimun
@@ -15,14 +19,15 @@ format.tex: orig/format.tex
clean:
rm minimun
-install: $(DESTDIR) all
+install: $(DIRS) all
cp -t $(DESTDIR) minimun format.tex logo.png
+ cp -RT www $(WEBROOT)
uninstall:
rm $(DESTDIR)/{minimun,format.tex,logo.png}
rmdir -p $(DESTDIR)
-SRC =LICENCE logo.png Makefile minimun.ini orig\
+SRC = LICENCE logo.png Makefile minimun.ini orig\
nginx.example.conf README www minimun.spec
dist: minimun.tar.gz
mkdir -pv ~/rpmbuild/SOURCES
@@ -34,5 +39,5 @@ minimun.tar.gz: $(SRC)
tar -czf minimun.tar.gz minimun-$(VER)
rm -rf minimun-$(VER)
-$(DESTDIR):
+$(DIRS):
mkdir -p $@
--
cgit