File: Makefile

package info (click to toggle)
http-analyze 2.4-2.1
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 3,344 kB
  • ctags: 924
  • sloc: ansic: 11,678; perl: 241; sh: 215; makefile: 214
file content (50 lines) | stat: -rw-r--r-- 1,452 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
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Makefile for the manpage of http-analyze
#
# $Id: Makefile,v 1.1 1999/05/17 05:18:42 stefan Exp $

# Shell to use for executing commands by make.
SHELL	= /bin/sh

# Local conventions
# -----------------
#
# HA_MANDIR	defines the directory for the manpage in source or
#		pre-formatted format.
HA_MANDIR = /usr/local/man/cat1

# EXTENSION	is either '1' or 'man' to define whether the pre-formatted
#		manpage (ASCII format) or the source (nroff format) is to
#		be installed. The name of the installed manpage always has
#		the suffix '.1'. This are the two most common combinations:
#
#		Manpage in	EXTENSION   HA_MANDIR
#		pre-fmt. text	.1	    /usr/local/man/cat1
#		source format	.man	    /usr/local/man/man1
#
# COMPRESS	defines the program to use for compressing the manpage.
#		If set to 'true', no compression is applied.
#EXTENSION = man
#COMPRESS = pack -f
#COMPRESS = compress -f
EXTENSION = 1
COMPRESS = true

NROFF	= nroff
NRFLAGS	= -u1 -man

http-analyze.1:	http-analyze.man
	$(NROFF) $(NRFLAGS) http-analyze.man | col >$@

install: http-analyze.$(EXTENSION)
	@echo "\nInstalling http-analyze.$(EXTENSION) in $(HA_MANDIR)"
	if test ! -d $(HA_MANDIR); then mkdir -p $(HA_MANDIR); \
	elif test -f $(HA_MANDIR)/http-analyze.1; then \
		mv $(HA_MANDIR)/http-analyze.1 $(HA_MANDIR)/http-analyze.1.O; \
	fi
	cp http-analyze.$(EXTENSION) $(HA_MANDIR)/http-analyze.1
	$(COMPRESS) $(HA_MANDIR)/http-analyze.1

realclean:
	-rm -f http-analyze.1