-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
83 lines (64 loc) · 2.05 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
################################################################
# Makefile template for SWI-Prolog CLIB package
#
# This template is used by configure to create Makefile. See
# the file INSTALL for further installation instructions.
#
# License: LGPL
#
# Author: Jan Wielemaker ([email protected])
################################################################
PACKAGE=eclisp
DOC=eclisp
include ../Makefile.defs
CFLAGS+= -I.
LIBPL= @ECLISP_PLTARGETS@
TARGETS= @ECLISP_TARGETS@
ZOBJ= eclisp.o
all: $(TARGETS)
nolib::
@echo "WARNING: Could not find eclisp library; skipped"
eclisp.@SO@: $(ZOBJ)
$(LD) $(LDSOFLAGS) -o $@ $(ZOBJ) @LIBS@ $(LIBPLSO)
install: $(TARGETS) $(LIBPL)
mkdir -p $(DESTDIR)$(SOLIBDIR)
for f in $(TARGETS); do \
[ "$$f" = nolib ] || $(INSTALL_PROGRAM) $$f $(DESTDIR)$(SOLIBDIR); \
done
mkdir -p $(DESTDIR)$(PLBASE)/library
for f in $(LIBPL); do \
$(INSTALL_DATA) $$f $(DESTDIR)$(PLBASE)/library; \
done
$(MKINDEX)
ln-install::
$(MAKE) INSTALL_DATA="../ln-install" INSTALL_PROGRAM="../ln-install" install
rpm-install: install
html-install::
mkdir -p $(DESTDIR)$(PKGDOC)
$(INSTALL) -m 644 $(DOC).html $(DESTDIR)$(PKGDOC)
pdf-install::
mkdir -p $(DESTDIR)$(PKGDOC)
$(INSTALL) -m 644 $(DOC).pdf $(DESTDIR)$(PKGDOC)
uninstall::
(cd $(SOLIBDIR) && rm -f $(TARGETS))
(cd $(PLBASE)/library && rm -f $(LIBPL))
$(MKINDEX)
################################################################
# Testing
################################################################
check: test_multipart.gz
$(PL) -q -f test_eclisp.pl -g test_eclisp,halt -t 'halt(1)'
test_multipart.gz:
echo "Part1" | gzip > $@
echo "Part2" | gzip >> $@
################################################################
# Clean
################################################################
clean:
rm -f $(ZOBJ) *~ *.o *% a.out core config.log
distclean: clean
rm -f $(TARGETS) config.cache config.h config.status Makefile
rm -f $(DOC).aux $(DOC).log $(DOC).out $(DOC).toc
rm -f test_multipart.gz
rm -rf html
rm -rf autom4te.cache