File: Makefile

package info (click to toggle)
flexbackup 1.2.1-6.4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 436 kB
  • sloc: perl: 4,445; sh: 451; makefile: 66
file content (37 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (5)
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: Makefile.dist,v 1.8 2003/07/29 17:00:07 edwinh Exp $
# $Name: v1_2_1 $
######################################################################

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