aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 526c95dc861c79df954ba3b4b28ae9835ccf7d40 (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
VERSION=0.8

BINFILES=mkpeople
CFGFILES=mgapeople.conf
TMPLFILES=tmpl/*.html tmpl/*.txt
STATICFILES=static/*

sysconfdir=/etc
bindir=/usr/bin
sharedir=/usr/share
tmpldir=$(sharedir)/mgapeople/tmpl
staticdir=$(sharedir)/mgapeople/static

.PHONY : install tar

install:
	install -d $(DESTDIR)$(tmpldir) $(DESTDIR)$(bindir) \
	    	   $(DESTDIR)$(sysconfdir) $(DESTDIR)$(staticdir)
	install -m 755 $(BINFILES) $(DESTDIR)$(bindir)
	install -m 644 $(CFGFILES) $(DESTDIR)$(sysconfdir)
	install -m 644 $(TMPLFILES) $(DESTDIR)$(tmpldir)
	install -m 644 $(STATICFILES) $(DESTDIR)$(staticdir)

tar:
	git archive --format=tar --prefix mgapeople-$(VERSION)/ HEAD | xz > mgapeople-$(VERSION).tar.xz