Diff of /Makefile [000000] .. [2d8d0c] Maximize Restore

  Switch to unified view

a b/Makefile
1
# Generated automatically from Makefile.in by configure.
2
# DIST: This is the distribution Makefile for ECL.  configure can
3
# DIST: make most of the changes to this file you might want, so try
4
# DIST: that first.
5
6
# make all    to compile and build Emacs.
7
# make install    to install it.
8
# make TAGS   to update tags tables.
9
#
10
# make clean  or  make mostlyclean
11
#      Delete all files from the current directory that are normally
12
#      created by building the program.    Don't delete the files that
13
#      record the configuration.  Also preserve files that could be made
14
#      by building, but normally aren't because the distribution comes
15
#      with them.
16
#
17
#      Delete `.dvi' files here if they are not part of the distribution.
18
# 
19
# make distclean
20
#      Delete all files from the current directory that are created by
21
#      configuring or building the program.  If you have unpacked the
22
#      source and built the program without creating any other files,
23
#      `make distclean' should leave only the files that were in the
24
#      distribution.
25
# 
26
# make realclean
27
#      Delete everything from the current directory that can be
28
#      reconstructed with this Makefile.  This typically includes
29
#      everything deleted by distclean.
30
31
SHELL = /bin/sh
32
MAKE = make  # BSD doesn't have it as a default.
33
MACHINE = freebsd
34
35
# ========================= Last release ================================
36
37
VERSION=0.2
38
WWW=http://ecls.sourceforge.net/
39
40
# ==================== Things `configure' Might Edit ====================
41
42
CC=gcc
43
CPP=gcc -E
44
LN_S=ln -s
45
CFLAGS=-g -O2
46
47
#  Where to find the source code.
48
#  This is set by the configure script's `--srcdir' option.
49
srcdir=/home/jjgarcia/ecl/src
50
51
bindir=/home/jjgarcia/bin
52
infodir=/home/jjgarcia/info
53
mandir=/home/jjgarcia/man/man1
54
libdir=/home/jjgarcia/lib/ecls
55
56
#  What to release
57
TAR_CONTENTS=Makefile.in Copy* README.1st README.orig doc \
58
  configure site.lsp src/c src/cmp src/crs src/clos src/lsp src/doc \
59
  src/h src/etc src/gmp src/config* src/install.sh src/Makefile.in \
60
  src/util contrib/ src/clx src/tk src/gc src/*.in src/gabriel
61
62
# ==================== Utility Programs for the Build ====================
63
64
#  Allow the user to specify the install program.
65
INSTALL = /usr/bin/install -c
66
INSTALL_PROGRAM = ${INSTALL}
67
INSTALL_DATA = ${INSTALL} -m 644
68
69
# ============================= Build ==============================
70
71
all: build/Makefile
72
  cd build; $(MAKE)
73
.PHONY:   all
74
75
Makefile: Makefile.in build/config.status
76
  (cd build; ./config.status)
77
78
# ==================== Installation ====================
79
80
install: build/Makefile
81
  (cd build; make install)
82
uninstall:
83
  (cd build; make uninstall)
84
85
# ==================== Documentation ====================
86
87
info:
88
  (cd ${srcdir}/doc; $(MAKE) info)
89
dvi:
90
  (cd ${srcdir}/doc; $(MAKE) dvi)
91
92
# ==================== Cleaning up and miscellanea ====================
93
94
#   `clean'
95
#        Delete all files from the current directory that are normally
96
#        created by building the program.  Don't delete the files that
97
#        record the configuration.  Also preserve files that could be made
98
#        by building, but normally aren't because the distribution comes
99
#        with them.
100
#   
101
clean:
102
  cd build; $(MAKE) clean
103
104
#   `distclean'
105
#        Delete all files from the current directory that are created by
106
#        configuring or building the program.  If you have unpacked the
107
#        source and built the program without creating any other files,
108
#        `make distclean' should leave only the files that were in the
109
#        distribution.
110
111
distclean: clean
112
  rm -fr build/config.status
113
  rm -f Makefile
114
115
#   `realclean'
116
#        Delete everything from the current directory that can be
117
#        reconstructed with this Makefile.
118
#        One exception, however: `make realclean' should not delete
119
#        `configure' even if `configure' can be remade using a rule in the
120
#        Makefile.  More generally, `make realclean' should not delete
121
#        anything that needs to exist in order to run `configure' and then
122
#        begin to build the program.
123
realclean: distclean
124
125
TAGS tags:
126
  (cd ${srcdir}/src; \
127
   etags c/*.[cd] h/*.h)
128
129
check:
130
  @echo "We don't have any tests for ECL yet."
131
132
TAR_DIR=ecls-$(VERSION)
133
134
doc: build/doc/index.html
135
  -mkdir doc
136
  cp build/doc/*.html doc
137
build/doc/index.html:
138
  cd build/doc; make
139
140
source-dist: ecls.tgz ecls-tests.tgz
141
142
ecls.tgz: doc
143
  -rm -rf $(TAR_DIR)
144
  mkdir $(TAR_DIR) $(TAR_DIR)/src && \
145
  for i in $(TAR_CONTENTS); do cp -rf $$i $(TAR_DIR)/$$i; done && \
146
  tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f ecls.tgz $(TAR_DIR)
147
  -rm -rf $(TAR_DIR)
148
ecls-tests.tgz:
149
  -rm -rf $(TAR_DIR)
150
  mkdir $(TAR_DIR) && \
151
  mkdir $(TAR_DIR)/src && \
152
  cp -rf src/ansi-tests $(TAR_DIR)/src && \
153
  tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f ecls-tests.tgz $(TAR_DIR);
154
  -rm -rf $(TAR_DIR)
155
156
binary-dist: all
157
  su -c "rm -rf tmp"
158
  mkdir tmp
159
  for i in $(bindir) $(infodir) $(mandir) $(libdir); do \
160
  (echo $$i; IFS="/"; for k in tmp/$$i; do echo $$k; (test -d $$k || mkdir $$k); chmod 755 $$k; cd $$k; done); \
161
  done
162
  PREFIX=`pwd`/tmp; cd build; make install PREFIX="$${PREFIX}"
163
  su -c "chown -R root.root tmp && cd tmp; tar czf ../ecls-$(VERSION)-$(MACHINE).tgz * && cd .. && rm -rf tmp"
164
165
dist:
166
  cd dist; make-dist