fix installation path of sample conf
authorStefan Huber <shuber2@gmx.at>
Mon, 21 May 2012 10:50:44 +0000 (12:50 +0200)
committerStefan Huber <shuber2@gmx.at>
Mon, 21 May 2012 10:50:44 +0000 (12:50 +0200)
Makefile

index d565b1542d78b2c7fcce2ae8625f9467fe275076..8ceb4c005f39563bc8baa557ef0fb07dd3c2ed91 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@ PREFIX=/usr
 # Where the script binary should go
 BINPATH = $(PREFIX)/bin
 MANPATH = $(PREFIX)/share/man
 # Where the script binary should go
 BINPATH = $(PREFIX)/bin
 MANPATH = $(PREFIX)/share/man
-CONFFILE = $(PREFIX)/share/sitarba.conf.sample
+SHAREDIR = $(PREFIX)/share/sitarba/
+CONFFILE = $(SHAREDIR)/sitarba.conf.sample
 
 ######################################################################
 
 
 ######################################################################
 
@@ -10,6 +11,7 @@ all:
 
 install: all
        install -m 0755 sitarba $(BINPATH)/sitarba
 
 install: all
        install -m 0755 sitarba $(BINPATH)/sitarba
+       mkdir -p $(SHAREDIR)
        install -m 0644 sitarba.conf $(CONFFILE)
        install -m 0644 sitarba.1 $(MANPATH)/man1/sitarba.1
 
        install -m 0644 sitarba.conf $(CONFFILE)
        install -m 0644 sitarba.1 $(MANPATH)/man1/sitarba.1