summaryrefslogtreecommitdiff
path: root/databases/postgresql/patches/patch-ac
blob: 472864c350d5c444bdc7593c08e8028358062ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ac,v 1.9 2001/05/14 14:52:38 jlam Exp $

--- doc/Makefile.orig	Sat Jan  6 21:03:22 2001
+++ doc/Makefile
@@ -37,7 +37,7 @@
 
 install: all installdirs
 ifdef found_html
-	gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
+	gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir) && $(TAR) xf - )
 endif
 ifdef found_man
 	gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
@@ -45,12 +45,17 @@
 
 
 installdirs:
-	$(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
+ifdef found_html
+	$(mkinstalldirs) $(DESTDIR)$(docdir)
+endif
+ifdef found_man
+	$(mkinstalldirs) $(DESTDIR)$(mandir)
+endif
 
 
 uninstall:
 ifdef found_html
-	-rm -f $(addprefix $(DESTDIR)$(docdir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
+	-rm -f $(addprefix $(DESTDIR)$(docdir)/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
 endif
 ifdef found_man
 	-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf -))