From 5280f9a0cd1f9ba200422ebba65d1e0133410995 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 13 Sep 2014 09:43:21 -0700 Subject: Initial. --- man2html/Makefile.in | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 man2html/Makefile.in (limited to 'man2html/Makefile.in') diff --git a/man2html/Makefile.in b/man2html/Makefile.in new file mode 100644 index 0000000..b41eaba --- /dev/null +++ b/man2html/Makefile.in @@ -0,0 +1,66 @@ +CC = @CC@ +CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes +OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o +EXEEXT = @EXEEXT@ +bindir = $(DESTDIR)$(PREFIX)/usr/bin +mandir = $(DESTDIR)$(PREFIX)@mandir@ +vardir = $(DESTDIR)$(PREFIX)/var +httpdir = $(DESTDIR)$(PREFIX)/home/httpd +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.@man1ext@ + +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 $(httpdir)/cgi-bin/man + mkdir -p $(httpdir)/cgi-aux/man + install -m 755 scripts/cgi-bin/man/* $(httpdir)/cgi-bin/man + install -m 644 scripts/cgi-aux/man/* $(httpdir)/cgi-aux/man + 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%,@version@,' hman.sh > hman + +install-hman: hman + install -m 555 hman $(bindir)/hman + install -m 644 hman.1 $(mandir)/man1/hman.@man1ext@ + +clean: + rm -f core hman man2html$(EXEEXT) $(OBJECTS) *~ + +spotless: clean + rm -f Makefile + +$(OBJECTS): defs.h -- cgit v1.2.3