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
| | diff -ur ex-050325-orig/Makefile ex-050325/Makefile
--- ex-050325-orig/Makefile
+++ ex-050325/Makefile
@@ -75,11 +75,13 @@
# @(#)Makefile 1.50 (gritter) 2/20/05
#
+CC = gcc
+
#
# Destinations for installation. $(PRESERVEDIR) is used for recovery files.
# It will get mode 1777.
#
-PREFIX = /usr/local
+PREFIX = ${out}
BINDIR = $(PREFIX)/bin
LIBEXECDIR = $(PREFIX)/libexec
MANDIR = $(PREFIX)/share/man
@@ -94,7 +96,7 @@
#
# A BSD-like install program. GNU install will fit well here, too.
#
-INSTALL = /usr/ucb/install
+INSTALL = install
#
# Compiler and linker flags.
@@ -205,13 +207,13 @@
#
# You may also get terminfo access by using the ncurses library.
#
-#TERMLIB = ncurses
+TERMLIB = ncurses
#
# The preferred choice for ex on Linux distributions, other systems that
# provide a good termcap file, or when setting the TERMCAP environment
# variable is deemed sufficient, is the included 2.11BSD termcap library.
#
-TERMLIB = termlib
+#TERMLIB = termlib
#
# Since ex uses sbrk() internally, a conflict with the libc's version of
@@ -330,8 +332,7 @@
ln -s ex $(DESTDIR)$(BINDIR)/vedit
ln -s ex $(DESTDIR)$(BINDIR)/vi
ln -s ex $(DESTDIR)$(BINDIR)/view
- test -d $(DESTDIR)$(PRESERVEDIR) || mkdir -p $(DESTDIR)$(PRESERVEDIR)
- chmod 1777 $(DESTDIR)$(PRESERVEDIR)
+
ex.o: config.h ex_argv.h ex.h ex_proto.h ex_temp.h ex_tty.h ex_tune.h
ex.o: ex_vars.h libterm/libterm.h
|