blob: b182405224f9dcd43bae83c3b671dfb36fea133b (
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
34
35
36
|
$NetBSD: patch-aa,v 1.5 2008/06/20 01:09:44 joerg Exp $
--- Makefile.orig Sat Aug 16 04:10:21 1997
+++ Makefile Tue Aug 15 05:58:06 2000
@@ -5,8 +5,10 @@
SHELL = /bin/sh
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+PREFIX ?= /usr/pkg
+BINDIR = ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/${PKGMANDIR}/man1
+LIBDIR = ${PREFIX}/share/examples/weblint
PSROFF = groff -Tps
PSVIEW = ghostview
RM = /bin/rm -f
@@ -16,13 +18,13 @@
TARFILE = $(PROGRAM)-$(VERSION).tar
TGZ = $(TARFILE).gz
-all: $(PROGRAM) $(PSFILE)
+all: $(PROGRAM)
install: $(PROGRAM)
- -cp $(PROGRAM) $(BINDIR)
- -chmod 755 $(BINDIR)/$(PROGRAM)
- -cp $(PROGRAM).1 $(MANDIR)
- -chmod 644 $(MANDIR)/$(PROGRAM).1
+ ${BSD_INSTALL_SCRIPT} $(PROGRAM) ${DESTDIR}$(BINDIR)
+ ${BSD_INSTALL_DATA} $(PROGRAM).1 ${DESTDIR}$(MANDIR)
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(LIBDIR)
+ ${BSD_INSTALL_DATA} weblintrc ${DESTDIR}$(LIBDIR)
test:
@./test.pl
|