047e56855a
Don't hardcode /usr/local in patch-* help and ok naddy@
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2008/01/24 18:31:24 merdely Exp $
|
|
--- Makefile.orig Mon Oct 20 18:58:19 1997
|
|
+++ Makefile Wed Jan 23 23:08:34 2008
|
|
@@ -30,7 +30,7 @@ DEFINES =
|
|
|
|
# Where do your manpages reside?
|
|
#
|
|
-MANDIR = /usr/man
|
|
+MANDIR = ${PREFIX}/man
|
|
|
|
|
|
# Various compilers: if you have problems compiling, you may comment out the
|
|
@@ -38,7 +38,7 @@ MANDIR = /usr/man
|
|
# please send me a patch
|
|
|
|
# Generic ANSI compiler
|
|
-CC = cc
|
|
+CC ?= cc
|
|
|
|
# HP/UX compiler
|
|
#CC = cc -Aa -D_HPUX_SOURCE
|
|
@@ -48,12 +48,12 @@ CC = cc
|
|
|
|
|
|
# Maybe you want debugging instead, or more optimisation?
|
|
-COPTIMISE = -O
|
|
+# COPTIMISE = -O
|
|
|
|
###############################################################################
|
|
# No user servicable parts below
|
|
#
|
|
-CFLAGS = $(DEFINES) -Iinclude $(COPTIMISE) $(NO_PATH_H) $(PATH_SENDMAIL) \
|
|
+CFLAGS += $(DEFINES) -Iinclude $(COPTIMISE) $(NO_PATH_H) $(PATH_SENDMAIL) \
|
|
$(PATH_MAILDIR)
|
|
|
|
LDFLAGS = -s $(COPTIMISE) -Llib -lpgpsendmail
|
|
@@ -112,8 +112,8 @@ match-email-addr: match-email-addr.o lib/libpgpsendmai
|
|
$(CC) -o match-email-addr match-email-addr.o $(LDFLAGS)
|
|
|
|
|
|
-install: dummy pgpsendmail pgpdaemon sendpgppass pgppipe pgpsign extract-addrs\
|
|
- match-email-addr install.man
|
|
+all_install: dummy pgpsendmail pgpdaemon sendpgppass pgppipe pgpsign \
|
|
+ extract-addrs match-email-addr install.man
|
|
./install pgpsendmail $(SENDMAIL)
|
|
./install pgpdaemon
|
|
./install sendpgppass
|
|
@@ -123,8 +123,7 @@ install: dummy pgpsendmail pgpdaemon sendpgppass pgppi
|
|
./install match-email-addr
|
|
|
|
install.man: clean
|
|
- cp -rp man/* $(MANDIR)
|
|
-
|
|
+ cp -r man/* $(MANDIR)
|
|
|
|
reminder:
|
|
@echo ""
|