X-Git-Url: https://git.sthu.org/?p=sitarba.git;a=blobdiff_plain;f=Makefile;h=8ceb4c005f39563bc8baa557ef0fb07dd3c2ed91;hp=6db310f7d92666ac7e996695982cec98b012d7cc;hb=6f010747e7b87c12af58b2b1254854e20217c037;hpb=2cb9c718633a922bcee6d3dbb27d448c38d6a7d6 diff --git a/Makefile b/Makefile index 6db310f..8ceb4c0 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,23 @@ PREFIX=/usr # Where the script binary should go BINPATH = $(PREFIX)/bin -# Where the manpage should go MANPATH = $(PREFIX)/share/man -CONFFILE = /etc/shbackup.conf +SHAREDIR = $(PREFIX)/share/sitarba/ +CONFFILE = $(SHAREDIR)/sitarba.conf.sample ###################################################################### -all: shbackup.1 +all: install: all - install -m 0755 shbackup $(BINPATH)/shbackup - install -m 0644 shbackup.conf $(CONFFILE) - install -m 0644 shbackup.1 $(MANPATH)/man1/shbackup.1 + install -m 0755 sitarba $(BINPATH)/sitarba + mkdir -p $(SHAREDIR) + install -m 0644 sitarba.conf $(CONFFILE) + install -m 0644 sitarba.1 $(MANPATH)/man1/sitarba.1 -shbackup.1: +manpage: sitarba.1 + +sitarba.1: sitarba.docbook docbook2man.pl $<