File: Makefile

package info (click to toggle)
statnews 2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 128 kB
  • ctags: 19
  • sloc: perl: 247; makefile: 17
file content (48 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
45
46
47
48
# Makefile for the StatNews package
# $Id: Makefile,v 2.0 2001/03/29 09:54:07 salve Exp $
#
# Copyright (C) 1998, 1999, 2000, 2001 by Davide Giovanni Maria Salvetti.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to: The Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
# On Debian GNU/Linux System you can find a copy of the GNU General Public
# License in /usr/doc/copyright/GPL.

prefix = /usr/local/
exec_prefix = $(prefix)

bindir = $(exec_prefix)/bin
mandir = $(prefix)/man

all: man

man: statnews.pl
	pod2man --section 1 --center "Debian GNU/Linux Manual" \
		--release "Debian Project" statnews.pl > statnews.1

install: all
	test -d $(bindir) \
		|| install -o root -g root -m 755 -d $(bindir)
	test -d $(mandir)/man1 \
		|| install -o root -g root -m 755 -d $(mandir)/man1
	install -o root -g root -m 755 statnews.pl $(bindir)/statnews
	install -o root -g root -m 644 statnews.1 $(mandir)/man1/

clean:
	rm -f statnews.1

### Local Variables:
### mode: makefile
### End: