aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-25 14:11:27 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-25 14:11:58 -0400
commit86c96011c090a8d8304c28043acaf13cdb37f28e (patch)
treed962111d19a593f084f02f096f45212071884cd0 /Makefile
parenta8de3886aa65d77475ee1ebe537bfae4e5a5beab (diff)
rpm installs index.html
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
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 $@