-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.dist
37 lines (28 loc) · 1 KB
/
Makefile.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Hey emacs, use -*-Makefile-*- mode
######################################################################
# $Id$
# $Name$
######################################################################
PREFIX=/usr
# Where the script binary should go
BINPATH = $(PREFIX)/bin
# Where the manpage should go
MANPATH = $(PREFIX)/share/man
# Where flexbackup.conf should be stored
CONFFILE = /etc/flexbackup.conf
# Where perl lives
PERLPATH = /usr/bin/perl
######################################################################
all: fb.install
install: all
install -m 0644 flexbackup.conf $(CONFFILE)
install -m 0755 fb.install $(BINPATH)/flexbackup
install -m 0644 flexbackup.1 $(MANPATH)/man1/flexbackup.1
install -m 0644 flexbackup.conf.5 $(MANPATH)/man5/flexbackup.conf.5
fb.install:
cp flexbackup fb.install
cp fb.install fb.tmp; sed -e 's%/etc/flexbackup.conf%$(CONFFILE)%g;' fb.tmp > fb.install
cp fb.install fb.tmp; sed -e 's%/usr/bin/perl%$(PERLPATH)%g' fb.tmp > fb.install
rm -f fb.tmp
clean:
rm -f fb.install