File: Makefile

package info (click to toggle)
flexbackup 1.2.1-2sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 368 kB
  • ctags: 113
  • sloc: perl: 4,457; makefile: 56; sh: 9
file content (37 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download
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 $(DESTDIR)$(CONFFILE)
	install -m 0755 fb.install $(DESTDIR)$(BINPATH)/flexbackup
	install -m 0644 flexbackup.1 $(DESTDIR)$(MANPATH)/man1/flexbackup.1
	install -m 0644 flexbackup.conf.5 $(DESTDIR)$(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