-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.in
More file actions
61 lines (45 loc) · 1.59 KB
/
Copy pathMakefile.in
File metadata and controls
61 lines (45 loc) · 1.59 KB
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
# Makefile.in for Aspic. 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@
CPPFLAGS=@CPPFLAGS@
LDFLAGS=@LDFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
DESTDIR=
BINDIR=@prefix@/bin
MANDIR=@prefix@/man
# BINDIR is the directory in which the command is installed.
# MANDIR is the directory in which the man pages are installed.
# 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)
# Do the building in the src directory
build:; @cd src; $(MAKE) \
BINDIR=$(BINDIR) \
MANDIR=$(MANDIR) \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
FE="$(FE)" \
aspic
clean:
$(MAKE) -C src clean
distclean: clean
$(RM) Makefile config.cache config.log config.status
test: build
cd testing; ./RunTests
check: test
install: build
$(mkinstalldirs) $(DESTDIR)$(BINDIR)
$(mkinstalldirs) $(DESTDIR)$(MANDIR)
$(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
$(INSTALL) src/aspic $(DESTDIR)$(BINDIR)/aspic
$(INSTALL_DATA) doc/aspic.1 $(DESTDIR)$(MANDIR)/man1
# End