aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: dc7175de3c1ab2b7bc663f471af07334f84c8315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.POSIX:

DESTDIR=/home/minimun/minimun
VER=1.0

minimun: minimun.orig
	sed 's:%%DEST%%:$(DESTDIR):' minimun.orig > minimun
	chmod +x 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)

SRC = format.tex LICENCE logo.png Makefile minimun.ini minimun.orig\
nginx.example.conf README www minimun.spec
dist: minimun.tar.gz
minimun.tar.gz: $(SRC)
	mkdir minimun-$(VER)
	cp -r -t minimun-$(VER) $(SRC)
	tar -czf minimun.tar.gz minimun-$(VER)
	rm -rf minimun-$(VER)

$(DESTDIR):
	mkdir -p $@