pkgsrc/textproc/halibut/patches/patch-aa
ahoka 32908e48b7 Import halibut-1.0 as textproc/halibut.
Halibut reads documentation source in a single input format, and produces
multiple output formats containing the same text.

The supported output formats are:

    * Plain ASCII text
    * HTML
    * PDF
    * PostScript
    * Unix man pages
    * Unix info, generated directly as .info files rather than .texi sources
    * Windows HTML Help (.CHM files), or rather source which can be fed to
      the MS HTML Help compiler to generate them
    * Windows WinHelp (old-style .HLP files), generated directly without
      needing a help compiler.
2009-09-06 18:42:41 +00:00

42 lines
939 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2009/09/06 18:42:41 ahoka Exp $
--- Makefile.orig 2006-12-06 20:12:44.000000000 +0100
+++ Makefile
@@ -11,7 +11,7 @@
# pattern rules
# - we use .PHONY
-prefix=/usr/local
+prefix=$(PREFIX)
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
INSTALL=install -c
@@ -89,7 +89,7 @@ else
VDEF = `(cd $(SRC); md5sum -c manifest >& /dev/null && cat version)`
endif
-all: halibut
+all: halibut doc
SRC := ../
@@ -122,6 +122,9 @@ halibut: $(OBJECTS)
version.o: FORCE
$(CC) $(VDEF) -MD -c $(SRC)version.c
+doc:
+ $(MAKE) -C ../doc
+
spotless:: clean
rm -f *.d
@@ -129,7 +132,8 @@ clean::
rm -f *.o halibut core
install:
- $(INSTALL) -m 755 halibut $(bindir)/halibut
+ mkdir -p $(DESTDIR)$(bindir)
+ $(INSTALL) -m 755 halibut $(DESTDIR)$(bindir)/halibut
$(MAKE) -C ../doc install prefix="$(prefix)" INSTALL="$(INSTALL)"
FORCE: # phony target to force version.o to be rebuilt every time