blob: 407009d6ee3db39e1ece63a370d6ff614a0d531f (
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
37
|
$NetBSD: patch-aa,v 1.2 2010/01/28 19:27:03 joerg Exp $
--- Makefile.orig 2006-12-10 18:14:29.000000000 +0000
+++ Makefile
@@ -1,18 +1,20 @@
-export PREFIX = $(HOME)/software
+PREFIX?= $(HOME)/software
-all: nelma doxygen
+all: nelma
install: nelma-install man-install
nelma:
- $(MAKE) -C src all
+ cd src && $(MAKE) PREFIX=$(PREFIX) all
nelma-install:
- $(MAKE) -C src install
+ cd src && $(MAKE) PREFIX=$(PREFIX) install
+INSTALL?= install
+INSTALL_MAN?= install
man-install:
- install doc/nelma-cap.1 $(PREFIX)/man/man1
- install doc/nelma-drc.1 $(PREFIX)/man/man1
+ $(BSD_INSTALL_MAN) doc/nelma-cap.1 ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1
+ $(BSD_INSTALL_MAN) doc/nelma-drc.1 ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1
doxygen:
doxygen
@@ -21,4 +23,4 @@ clean:
rm -rf doc/html
$(MAKE) -C src clean
-.PHONY: all clean
+.PHONY: all clean doxygen install man-install nelma nelma-install
|