openbsd-ports/net/znc/patches/patch-man_Makefile_in
2009-09-29 21:40:59 +00:00

28 lines
720 B
Plaintext

$OpenBSD: patch-man_Makefile_in,v 1.2 2009/09/29 21:40:59 sthen Exp $
--- man/Makefile.in.orig Sun Jul 26 11:04:59 2009
+++ man/Makefile.in Mon Sep 28 21:01:30 2009
@@ -6,9 +6,9 @@ exec_prefix := @exec_prefix@
datarootdir := @datarootdir@
mandir := @mandir@
-MAN1 := znc.1.gz znc-buildmod.1.gz znc-config.1.gz
+MAN1 := znc.1 znc-buildmod.1 znc-config.1
-all: $(MAN1)
+all:
%.1.gz: %.1 Makefile
gzip -9 <$< >$@
@@ -16,9 +16,9 @@ all: $(MAN1)
clean:
-rm -f $(MAN1)
-install: $(MAN1)
+install:
mkdir -p $(DESTDIR)$(mandir)/man1
- install -m 644 $(MAN1) $(DESTDIR)$(mandir)/man1
+ cd $(VPATH) && install -m 644 $(MAN1) $(DESTDIR)$(mandir)/man1
uninstall:
for file in $(MAN1) ; do \