aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ecfe29e..cb1a14e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,21 +4,25 @@ PROJECTNAME=mga-treasurer
BINFILES=mktreasurer
CFGFILES=mga-treasurer.conf
TMPLFILES=tmpl/*.html tmpl/*.rss
+STATICFILES=static/*
sysconfdir=/etc
bindir=/usr/bin
sharedir=/usr/share
projectdir=$(sharedir)/$(PROJECTNAME)
tmpldir=$(projectdir)/tmpl
+staticdir=$(projectdir)/static
all:
install:
install -d $(DESTDIR)$(projectdir) $(DESTDIR)$(tmpldir) \
- $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
+ $(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)
install -m 644 config_default $(DESTDIR)$(projectdir)/config
tar: