1 |
VERSION=0.5 |
2 |
|
3 |
BINFILES=mkpeople |
4 |
CFGFILES=mgapeople.conf |
5 |
TMPLFILES=tmpl/*.html tmpl/*.txt |
6 |
STATICFILES=static/* |
7 |
|
8 |
sysconfdir=/etc |
9 |
bindir=/usr/bin |
10 |
sharedir=/usr/share |
11 |
tmpldir=$(sharedir)/mgapeople/tmpl |
12 |
staticdir=$(sharedir)/mgapeople/static |
13 |
|
14 |
.PHONY : install tar |
15 |
|
16 |
install: |
17 |
install -d $(DESTDIR)$(tmpldir) $(DESTDIR)$(bindir) \ |
18 |
$(DESTDIR)$(sysconfdir) $(DESTDIR)$(staticdir) |
19 |
install -m 755 $(BINFILES) $(DESTDIR)$(bindir) |
20 |
install -m 644 $(CFGFILES) $(DESTDIR)$(sysconfdir) |
21 |
install -m 644 $(TMPLFILES) $(DESTDIR)$(tmpldir) |
22 |
install -m 644 $(STATICFILES) $(DESTDIR)$(staticdir) |
23 |
|
24 |
tar: |
25 |
git archive --format=tar --prefix mgapeople-$(VERSION)/ HEAD | xz > mgapeople-$(VERSION).tar.xz |