blob: c67ee12bb5286112d7966c3c9bf9296ddfe45847 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
--- Makefile.orig Mon Feb 24 15:15:42 1992
+++ Makefile Tue Apr 13 18:24:18 1999
@@ -31,15 +31,15 @@
# INSTALL_HELP is a list of the public version of the help file.
# INSTALL_LESSMAN is a list of the public versions of the less manual page.
# INSTALL_KEYMAN is a list of the public versions of the lesskey manual page.
-ROOT = ../../VN
+ROOT = ${PREFIX}
INSTALL_LESS = $(ROOT)/bin/vnless
-INSTALL_KEY = $(ROOT)/bin/lesskey
-INSTALL_HELP = $(ROOT)/man/less.help
-INSTALL_LESSMAN = $(ROOT)/man/vnless.1
-INSTALL_KEYMAN = $(ROOT)/man/lesskey.1
+INSTALL_KEY = $(ROOT)/bin/vnlesskey
+INSTALL_HELP = $(ROOT)/share/misc/vnless.help
+INSTALL_LESSMAN = $(ROOT)/man/man1/vnless.1
+INSTALL_KEYMAN = $(ROOT)/man/man1/vnlesskey.1
LESS_MANUAL = less.man
KEY_MANUAL = lesskey.man
-HELPFILE = $(ROOT)/man/less.help
+HELPFILE = $(ROOT)/share/misc/vnless.help
# OPTIM is passed to the compiler and the loader.
@@ -49,6 +49,7 @@
#CFLAGS = $(OPTIM)
CFLAGS = -O
LDFLAGS =
+LDLIBS = -lcompat
##########################################################################
@@ -82,24 +83,19 @@
$(CC) $(CFLAGS) -c -DHELPFILE=\"$(HELPFILE)\" help.c
install_less: vnless
- for f in $(INSTALL_LESS); do rm -f $$f; cp vnless $$f; done
- touch install_less
+ @for f in $(INSTALL_LESS); do rm -f $$f; cp vnless $$f; done
install_key: lesskey
- for f in $(INSTALL_KEY); do rm -f $$f; cp lesskey $$f; done
- touch install_key
+ @for f in $(INSTALL_KEY); do rm -f $$f; cp lesskey $$f; done
install_help: less.help
- for f in $(INSTALL_HELP); do rm -f $$f; cp less.help $$f; done
- touch install_help
+ @for f in $(INSTALL_HELP); do rm -f $$f; cp less.help $$f; done
install_lman: $(LESS_MANUAL)
- for f in $(INSTALL_LESSMAN); do rm -f $$f; cp $(LESS_MANUAL) $$f; done
- touch install_lman
+ @for f in $(INSTALL_LESSMAN); do rm -f $$f; cp $(LESS_MANUAL) $$f; done
install_kman: $(KEY_MANUAL)
- for f in $(INSTALL_KEYMAN); do rm -f $$f; cp $(KEY_MANUAL) $$f; done
- touch install_kman
+ @for f in $(INSTALL_KEYMAN); do rm -f $$f; cp $(KEY_MANUAL) $$f; done
##########################################################################
# Maintenance
|