aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aed056f..dff7921 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
DESTDIR=/home/minimun/minimun
VER=1.0
+all: format.tex minimun
+
minimun: orig/minimun
sed 's:%%DEST%%:$(DESTDIR):' orig/minimun > minimun
chmod +x minimun
@@ -13,16 +15,19 @@ format.tex: orig/format.tex
clean:
rm minimun
-install: $(DESTDIR) minimun
+install: $(DESTDIR) all
cp -t $(DESTDIR) minimun format.tex logo.png
uninstall:
rm $(DESTDIR)/{minimun,format.tex,logo.png}
rmdir -p $(DESTDIR)
-SRC = format.tex 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
+ cp minimun.tar.gz ~/rpmbuild/SOURCES
+ rpmbuild minimun.spec -ba
minimun.tar.gz: $(SRC)
mkdir minimun-$(VER)
cp -r -t minimun-$(VER) $(SRC)