forked from hamano/man2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.OLD
71 lines (59 loc) · 2.22 KB
/
Makefile.OLD
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Generated automatically from ./man2html/Makefile.in by the
# configure script.
#
CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes -DGUNZIP='"/bin/gunzip -c"' $(DEBIAN_CFLAGS)
OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o
EXEEXT =
bindir = $(DESTDIR)$(PREFIX)/usr/bin
mandir = $(DESTDIR)$(PREFIX)/usr/man
vardir = $(DESTDIR)$(PREFIX)/var
httpdir = $(DESTDIR)$(PREFIX)/home/httpd
cgidir = $(DESTDIR)$(PREFIX)/usr/lib/cgi-bin/man
sharedir = $(DESTDIR)$(PREFIX)/usr/share/man2html
cgiowner = nobody
cgigroup = nobody
all: man2html$(EXEEXT) hman
man2html$(EXEEXT): $(OBJECTS)
$(CC) $(LDFLAGS) -o man2html$(EXEEXT) $(OBJECTS)
# man2html: ../src/version.h
# This installs the man2html utility
install: man2html$(EXEEXT)
mkdir -p $(bindir)
install -m 755 man2html$(EXEEXT) $(bindir)
mkdir -p $(mandir)/man1
install -m 644 man2html.1 $(mandir)/man1/man2html.1
install-scripts: install-man-scripts install-glimpse-stuff install-hman
# These are the scripts that allow pointing a browser at
# http://localhost/cgi-bin/man/man2html
# to work.
install-man-scripts:
mkdir -p $(cgidir)
mkdir -p $(sharedir)
install -m 755 scripts/cgi-bin/man/* $(cgidir)
install -m 644 scripts/cgi-aux/man/* $(sharedir)
install -d -o $(cgiowner) -g $(cgigroup) -m 775 $(vardir)/man2html
# (aux was renamed to cgi-aux since aux causes problems under DOS)
# If you have installed glimpse, and have compressed man pages,
# then perhaps you also want these filters.
install-glimpse-stuff:
install -m 644 glimpse_filters $(vardir)/man2html/.glimpse_filters
# In order not to have to type a long command like
# netscape http://localhost/cgi-bin/man/man2html?section+topic
# or
# lynx lynxcgi:/home/httpd/cgi-bin/man/man2html?section+topic
# it is convenient to have some shell script as a wrapper.
# The script hman can be aliased to man. It uses an environment
# variable MANHTMLPAGER to find out which browser you use, and
# you can set MANHTMLHOST if the pages are not on localhost.
hman: hman.sh
rm -f hman
sed -e 's,%version%,man-1.6g,' hman.sh > hman
install-hman: hman
install -m 555 hman $(bindir)/hman
install -m 644 hman.1 $(mandir)/man1/hman.1
clean:
rm -f core hman man2html$(EXEEXT) $(OBJECTS) *~
spotless: clean
rm -f Makefile
$(OBJECTS): defs.h