forked from shirok/Gauche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
95 lines (74 loc) · 2.8 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
84
85
86
87
88
89
90
91
92
93
# Top Makefle for Gauche
# $Id: Makefile.in,v 1.49 2004-01-28 01:04:52 shirok Exp $
# Run 'configure' script to generate Makefile
.PHONY: all test check install uninstall clean distclean maintainer-clean install-check
@SET_MAKE@
SHELL = @SHELL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
srcdir = @srcdir@
datadir = @datadir@
SUBDIRS = gc src lib ext doc
SRIDBUS = doc ext lib src gc
MKINSTDIR = @top_srcdir@/mkinstalldirs
INSTALL = @INSTALL@
GAUCHE_VERSION = @GAUCHE_VERSION@
GAUCHE_DATA_DIR = $(datadir)/gauche
DESTDIR =
CONFIG_GENERATED = Makefile config.cache config.log config.status libtool \
configure.lineno autom4* gc/autom4*
AUTOCONF_GENERATED = $(CONFIG_GENERATED) configure
all:
for d in $(SUBDIRS); do (cd $$d; $(MAKE) all); done
test : check
check: all
for d in $(SUBDIRS); do (cd $$d; $(MAKE) check); done
install: install-pkg install-doc
cd lib; $(MAKE) slibcat
install-doc:
cd doc; $(MAKE) install
install-pkg:
cd src; $(MAKE) install
cd lib; $(MAKE) install
cd ext; $(MAKE) install
$(INSTALL) -m 444 acinclude.m4 $(DESTDIR)`sh src/gauche-config --ac`/aclocal.m4
$(MKINSTDIR) $(DESTDIR)$(datadir)/aclocal
$(INSTALL) -m 444 acinclude.m4 $(DESTDIR)$(datadir)/aclocal/gauche.m4
slibcat-in-place:
cd lib; $(MAKE) slibcat-in-place
uninstall:
for d in $(SUBDIRS); do (cd $$d; $(MAKE) uninstall); done
rm -f $(datadir)/aclocal/gauche.m4
clean:
rm -rf test.log core *~
for d in $(SRIDBUS); do (cd $$d; $(MAKE) clean); done
distclean: clean
for d in $(SRIDBUS); do (cd $$d; $(MAKE) distclean); done
rm -rf $(CONFIG_GENERATED)
maintainer-clean: clean
for d in $(SRIDBUS); do (cd $$d; $(MAKE) maintainer-clean); done
rm -rf $(AUTOCONF_GENERATED) VERSION INSTALL INSTALL.eucjp DIST_EXCLUDE_X gc/configure
dist:
@echo "To create a distribution tarball, use DIST script."
distcheck:
@echo "To create a distribution tarball, use DIST script."
install-check:
@echo "Testing installed Gauche"
@rm -rf test.log
@(cd src; $(MAKE) install-check) >> test.log
@(cd ext; $(MAKE) install-check) >> test.log
# NB: I intentionally make aclocal.m4 not depend on acinclude.m4, to
# prevent aclocal from running accidentally.
aclocal.m4 :
@echo "************************************************************"
@echo "To rebuild aclocal.m4 from acinclude.m4, follow the instructions"
@echo "below:"
@echo " - Make sure you have libtool 1.5, or you'll be in deep trouble"
@echo " - Run aclocal"
@echo " - Edit aclocal.m4 so that always_export_symbols libtool parameter"
@echo " shall be 'yes' on cygwin platforms. (Don't change the default"
@echo " value. There are two occurrences of setting the parameter in"
@echo " case statement when the target platform is cygwin.)"
@echo "************************************************************"