-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
65 lines (46 loc) · 1.61 KB
/
Makefile.in
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
63
64
65
# Makefile.in for NE. The building work is done by a separate Makefile in
# the src directory, which gets passed settings from here.
mkinstalldirs = $(SHELL) mkinstalldirs
# These variables get set up by the configure script.
CC=@CC@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
BINDIR=@prefix@/bin
MANDIR=@prefix@/man
LIBS=@LIBS@
TERMCAP=@TERMCAP@
VDISCARD=@VDISCARD@
# The compile commands can be very long. To make the output look better,
# they are not normally echoed in full. To get full echoing, the caller
# must set FULLECHO='' on the command line and call make with -e. We default
# FULLECHO to '@' to suppress the full echo. Then define an abbreviation.
FULLECHO = @
FE = $(FULLECHO)
# On a main build, remove eversion.o to ensure a new build date.
build:; /bin/rm -rf src/eversion.o
$(MAKE) codebuild
# Build without necessarily updating the build date.
codebuild:; @cd src; $(MAKE) ne \
CC="$(CC)" \
CFLAGS="$(CFLAGS) $(TERMCAP) $(VDISCARD)" \
LDFLAGS="$(LDFLAGS)" \
LIBS="$(LIBS)" \
FE="$(FE)"
check: codebuild
cd test; ./MakeRun
test: check
clean:; cd src; $(MAKE) clean
distclean:; /bin/rm -f Makefile config.cache config.log config.status; \
cd src; $(MAKE) clean
install: build
$(mkinstalldirs) $(BINDIR)
$(mkinstalldirs) $(MANDIR)
$(mkinstalldirs) $(MANDIR)/man1
$(INSTALL) src/ne $(BINDIR)/ne
$(INSTALL_DATA) doc/ne.1 $(MANDIR)/man1
uninstall:; rm -rf \
$(BINDIR)/ne \
$(MANDIR)/ne.1
# End