"Fossies" - the Fresh Open Source Software Archive

Member "bed-3.1.1/man2html/Makefile" (20 May 2021, 2213 Bytes) of package /linux/misc/bed-3.1.1.src.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 3.1.0_vs_3.1.1.

    1 include /home/jka/src/bed-3.1.1/man2html/../build
    2 CC = x86_64-w64-mingw32-gcc
    3 CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
    4 OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o
    5 EXEEXT = $(BUILDEXEEXT)
    6 bindir = $(DESTDIR)$(PREFIX)/usr/bin
    7 mandir = $(DESTDIR)$(PREFIX)${prefix}/share/man
    8 vardir = $(DESTDIR)$(PREFIX)/var
    9 httpdir = $(DESTDIR)$(PREFIX)/home/httpd
   10 cgiowner = nobody
   11 cgigroup = nobody
   12 
   13 all: man2html$(EXEEXT) hman
   14 
   15 man2html$(EXEEXT):	$(OBJECTS)
   16 	$(CC) $(LDFLAGS) -o man2html$(EXEEXT) $(OBJECTS)
   17 
   18 # man2html:	../src/version.h
   19 
   20 # This installs the man2html utility
   21 install:	man2html$(EXEEXT)
   22 	mkdir -p $(bindir)
   23 	install -m 755 man2html$(EXEEXT) $(bindir)
   24 	mkdir -p $(mandir)/man1
   25 	install -m 644 man2html.1 $(mandir)/man1/man2html.@man1ext@
   26 
   27 install-scripts: install-man-scripts install-glimpse-stuff install-hman
   28 
   29 # These are the scripts that allow pointing a browser at
   30 #   http://localhost/cgi-bin/man/man2html
   31 # to work.
   32 install-man-scripts:
   33 	mkdir -p $(httpdir)/cgi-bin/man
   34 	mkdir -p $(httpdir)/cgi-aux/man
   35 	install -m 755 scripts/cgi-bin/man/* $(httpdir)/cgi-bin/man
   36 	install -m 644 scripts/cgi-aux/man/* $(httpdir)/cgi-aux/man
   37 	install -d -o $(cgiowner) -g $(cgigroup) -m 775 $(vardir)/man2html
   38 # (aux was renamed to cgi-aux since aux causes problems under DOS)
   39 
   40 # If you have installed glimpse, and have compressed man pages,
   41 # then perhaps you also want these filters.
   42 install-glimpse-stuff:
   43 	install -m 644 glimpse_filters $(vardir)/man2html/.glimpse_filters
   44 
   45 # In order not to have to type a long command like
   46 #   netscape http://localhost/cgi-bin/man/man2html?section+topic
   47 # or
   48 #   lynx lynxcgi:/home/httpd/cgi-bin/man/man2html?section+topic
   49 # it is convenient to have some shell script as a wrapper.
   50 # The script hman can be aliased to man. It uses an environment
   51 # variable MANHTMLPAGER to find out which browser you use, and
   52 # you can set MANHTMLHOST if the pages are not on localhost.
   53 hman: hman.sh
   54 	rm -f hman
   55 	sed -e 's,%version%,@version@,' hman.sh > hman
   56 
   57 install-hman: hman
   58 	install -m 555 hman $(bindir)/hman
   59 	install -m 644 hman.1 $(mandir)/man1/hman.@man1ext@
   60 
   61 clean:
   62 	rm -f core hman man2html$(EXEEXT) $(OBJECTS) *~
   63 
   64 spotless:	clean
   65 	rm -f Makefile
   66 
   67 $(OBJECTS): defs.h