$OpenBSD: patch-Makefile_in,v 1.3 2016/11/03 11:40:11 naddy Exp $
--- Makefile.in.orig	Thu Nov 12 00:01:46 2015
+++ Makefile.in	Thu Nov  3 12:36:25 2016
@@ -64,7 +64,7 @@ datarootdir = $(DESTDIR)@datarootdir@
 libdir = $(DESTDIR)@libdir@
 libexecdir = $(DESTDIR)@libexecdir@
 # @mandir@ tends to be $datarootdir which already has $DESTDIR.
-mandir = @mandir@/man1
+mandir = $(DESTDIR)@mandir@/man1
 
 # Where the ircII binary will be installed.
 # 'make install' will compile and install the program
@@ -82,7 +82,7 @@ LIBS = @LIBS@
 
 # Set this to -g if you want to be able to debug the client, otherwise
 # use -O to have the compiler do some optimization instead.
-CFLAGS = @CFLAGS@ @DEBUGFLAGS@ @WARNINGFLAGS@ @ERRORFLAGS@
+CFLAGS = @CFLAGS@ @CPPFLAGS@ @DEBUGFLAGS@ @WARNINGFLAGS@ @ERRORFLAGS@
 
 # Set this to -s if you want the binary to be stripped.
 LDFLAGS = @LDFLAGS@
@@ -181,7 +181,7 @@ installflush: ircflush installdirs
 installwserv: wserv installdirs
 	$(INSTALL) wserv $(INSTALL_WSERV)
 
-installhelp:
+installhelp: installdirs
 	$(INSTALL_HELP_CMD)
 	find $(HELP_DIR) -type d -print | xargs chmod a+rx
 	find $(HELP_DIR) -type f -print | xargs chmod a+r
