diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e09c664 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +VERSION=0.1 + +BINFILES=mkpeople +CFGFILES=mgapeople.conf +TMPLFILES=tmpl/*.html + +sysconfdir=/etc +bindir=/usr/bin +sharedir=/usr/share +tmpldir=$(sharedir)/mgapeople/tmpl + +install: + install -d $(DESTDIR)$(tmpldir) $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir) + install -m 755 $(BINFILES) $(DESTDIR)$(bindir) + install -m 644 $(CFGFILES) $(DESTDIR)$(sysconfdir) + install -m 644 $(TMPLFILES) $(DESTDIR)$(tmpldir) + +tar: + git archive --format=tar --prefix mgapeople-$(VERSION)/ HEAD | xz > mgapeople-$(VERSION).tar.xz |