$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