Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /Makefile.in [ee989b] .. [2d8d0c] Maximize Restore

  Switch to unified view

a/Makefile.in b/Makefile.in
...
...
26
#      Delete everything from the current directory that can be
26
#      Delete everything from the current directory that can be
27
#      reconstructed with this Makefile.  This typically includes
27
#      reconstructed with this Makefile.  This typically includes
28
#      everything deleted by distclean.
28
#      everything deleted by distclean.
29
29
30
SHELL = /bin/sh
30
SHELL = /bin/sh
31
MAKE = make  # BSD doesn't have it as a default.
31
MACHINE = @MACHINE_VERSION@
32
MACHINE = @MACHINE@
32
33
33
# ========================= Last release ================================
34
# ========================= Last release ================================
34
35
35
VERSION=@PACKAGE_VERSION@
36
VERSION=@ECLS_VERSION@
36
WWW=http://ecls.sourceforge.net/
37
WWW=http://ecls.sourceforge.net/
37
ADDRESS=git://git.code.sf.net/p/ecls/ecl
38
38
39
# ==================== Things `configure' Might Edit ====================
39
# ==================== Things `configure' Might Edit ====================
40
41
CC=@CC@
42
CPP=@CPP@
43
LN_S=@LN_S@
44
CFLAGS=@CFLAGS@
40
45
41
#  Where to find the source code.
46
#  Where to find the source code.
42
#  This is set by the configure script's `--srcdir' option.
47
#  This is set by the configure script's `--srcdir' option.
43
srcdir=@srcdir@
48
srcdir=@srcdir@
44
49
45
prefix=@prefix@
46
exec_prefix=@exec_prefix@
47
bindir=@bindir@
50
bindir=@bindir@
48
infodir=@infodir@
51
infodir=@infodir@
49
mandir=@mandir@
52
mandir=@mandir@
50
libdir=@libdir@
53
libdir=@libdir@
51
54
52
#  What to release
55
#  What to release
53
TAR_CONTENTS=Makefile.in README.1st LGPL ANNOUNCEMENT Copyright doc \
56
TAR_CONTENTS=Makefile.in Copy* README.1st README.orig doc \
54
    configure src/c src/cmp src/clos src/CHANGELOG src/lsp src/doc \
57
    configure site.lsp src/c src/cmp src/crs src/clos src/lsp src/doc \
55
    src/h  src/gmp src/config* src/install.sh src/Makefile.in \
58
    src/h src/etc src/gmp src/config* src/install.sh src/Makefile.in \
56
    src/util contrib/ src/clx src/gc src/*.in src/*.m4 src/gabriel \
59
    src/util contrib/ src/clx src/tk src/gc src/*.in src/gabriel
57
  src/tests/Makefile.in src/ansi-tests/Makefile.in msvc examples
58
60
59
# ==================== Utility Programs for the Build ====================
61
# ==================== Utility Programs for the Build ====================
60
62
61
#  Allow the user to specify the install program.
63
#  Allow the user to specify the install program.
62
@SET_MAKE@
63
INSTALL = @INSTALL@
64
INSTALL = @INSTALL@
64
INSTALL_PROGRAM = @INSTALL_PROGRAM@
65
INSTALL_PROGRAM = @INSTALL_PROGRAM@
65
INSTALL_DATA = @INSTALL_DATA@
66
INSTALL_DATA = @INSTALL_DATA@
66
67
67
# ============================= Build ==============================
68
# ============================= Build ==============================
...
...
73
Makefile: Makefile.in build/config.status
74
Makefile: Makefile.in build/config.status
74
    (cd build; ./config.status)
75
    (cd build; ./config.status)
75
76
76
# ==================== Installation ====================
77
# ==================== Installation ====================
77
78
78
INSTALL_TARGET = @INSTALL_TARGET@
79
install: build/Makefile
80
  (cd build; make install)
81
uninstall:
82
  (cd build; make uninstall)
79
83
80
install: build/Makefile
84
# ==================== Documentation ====================
81
  cd build; $(MAKE) $(INSTALL_TARGET)
85
82
uninstall:
86
info:
83
  cd build; $(MAKE) uninstall
87
  (cd ${srcdir}/doc; $(MAKE) info)
88
dvi:
89
  (cd ${srcdir}/doc; $(MAKE) dvi)
84
90
85
# ==================== Cleaning up and miscellanea ====================
91
# ==================== Cleaning up and miscellanea ====================
86
92
87
#   `clean'
93
#   `clean'
88
#        Delete all files from the current directory that are normally
94
#        Delete all files from the current directory that are normally
89
#        created by building the program.  Don't delete the files that
95
#        created by building the program.  Don't delete the files that
90
#        record the configuration.  Also preserve files that could be made
96
#        record the configuration.  Also preserve files that could be made
91
#        by building, but normally aren't because the distribution comes
97
#        by building, but normally aren't because the distribution comes
92
#        with them.
98
#        with them.
93
#
99
#   
94
clean:
100
clean:
95
    cd build; $(MAKE) clean
101
    cd build; $(MAKE) clean
96
102
97
#   `distclean'
103
#   `distclean'
98
#        Delete all files from the current directory that are created by
104
#        Delete all files from the current directory that are created by
...
...
100
#        source and built the program without creating any other files,
106
#        source and built the program without creating any other files,
101
#        `make distclean' should leave only the files that were in the
107
#        `make distclean' should leave only the files that were in the
102
#        distribution.
108
#        distribution.
103
109
104
distclean: clean
110
distclean: clean
111
  rm -fr build/config.status
105
    rm -rf build Makefile
112
    rm -f Makefile
106
113
107
#   `realclean'
114
#   `realclean'
108
#        Delete everything from the current directory that can be
115
#        Delete everything from the current directory that can be
109
#        reconstructed with this Makefile.
116
#        reconstructed with this Makefile.
110
#        One exception, however: `make realclean' should not delete
117
#        One exception, however: `make realclean' should not delete
...
...
112
#        Makefile.  More generally, `make realclean' should not delete
119
#        Makefile.  More generally, `make realclean' should not delete
113
#        anything that needs to exist in order to run `configure' and then
120
#        anything that needs to exist in order to run `configure' and then
114
#        begin to build the program.
121
#        begin to build the program.
115
realclean: distclean
122
realclean: distclean
116
123
124
TAGS tags:
125
  (cd ${srcdir}/src; \
126
   etags c/*.[cd] h/*.h)
127
117
check:
128
check:
118
  cd build && $(MAKE) check
129
  @echo "We don't have any tests for ECL yet."
119
recheck:
120
  cd build && $(MAKE) recheck
121
130
122
# ==================== Various means of distribution ====================
123
124
TAR_DIR=ecl-$(VERSION)
131
TAR_DIR=ecls-$(VERSION)
125
132
126
doc: build/doc/index.html
133
doc: build/doc/index.html
127
    -mkdir doc
134
    -mkdir doc
128
  (cd build/doc; make html); cp build/doc/*.html doc
135
  cp build/doc/*.html doc
129
build/doc/index.html:
136
build/doc/index.html:
130
  cd build/doc; $(MAKE)
137
  cd build/doc; make
131
138
132
source-dist: $(TAR_DIR).tgz
139
source-dist: ecls.tgz ecls-tests.tgz
133
140
134
rpmdir=$(shell rpm --showrc | grep '^-[0-9]*:.*[^{]_topdir' | sed 's,^.*topdir[   ]*\(.*\)[   ]*,\1,')
141
ecls.tgz: doc
135
rpmbuild=$(shell if [ -z `which rpmbuild` ]; then echo "rpm"; else echo "rpmbuild"; fi)
136
137
# OBSOLETE!!!
138
# rpm: doc
139
#    -rm -rf $(TAR_DIR)
142
    -rm -rf $(TAR_DIR)
140
#    mkdir $(TAR_DIR) $(TAR_DIR)/src \
143
    mkdir $(TAR_DIR) $(TAR_DIR)/src && \
141
#     $(TAR_DIR)/src/tests $(TAR_DIR)/src/ansi-tests && \
142
#    for i in $(TAR_CONTENTS); do cp -rf $$i $(TAR_DIR)/$$i; done && \
144
    for i in $(TAR_CONTENTS); do cp -rf $$i $(TAR_DIR)/$$i; done && \
143
#    tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f $(rpmdir)/SOURCES/$(TAR_DIR).tgz $(TAR_DIR)
145
    tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f ecls.tgz $(TAR_DIR)
144
#     if [ -f /etc/SuSE-release ]; then HOST=SUSE; else HOST=REDHAT; fi; \
146
  -rm -rf $(TAR_DIR)
145
#     cat src/util/ecl.spec |\
147
ecls-tests.tgz:
146
#     sed 's,ECL_VERSION,$(VERSION),;s,^#% '$${HOST}' ,,g;'|\
148
  -rm -rf $(TAR_DIR)
147
#     grep -v '^#% ' > $(rpmdir)/SPECS/ecl.spec;
149
  mkdir $(TAR_DIR) && \
148
#     rpm -ba $(rpmdir)/SPECS/ecl.spec
150
  mkdir $(TAR_DIR)/src && \
149
151
  cp -rf src/ansi-tests $(TAR_DIR)/src && \
150
$(TAR_DIR).tgz:
152
  tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f ecls-tests.tgz $(TAR_DIR);
151
  git archive --format=tar.gz --prefix=$(TAR_DIR)/ HEAD > $@
153
  -rm -rf $(TAR_DIR)
152
154
153
binary-dist: all
155
binary-dist: all
154
    su -c "rm -rf tmp"
156
    su -c "rm -rf tmp"
155
    mkdir tmp
157
    mkdir tmp
156
    for i in tmp$(bindir) tmp$(infodir) tmp$(mandir) tmp$(libdir); do \
158
    for i in $(bindir) $(infodir) $(mandir) $(libdir); do \
157
    (echo $$i; IFS="/"; \for k in $$i; do echo $$k; (test -d $$k || mkdir $$k); chmod 755 $$k; cd $$k; done); \
159
    (echo $$i; IFS="/"; for k in tmp/$$i; do echo $$k; (test -d $$k || mkdir $$k); chmod 755 $$k; cd $$k; done); \
158
    done
160
    done
159
  prefix=`pwd`/tmp; cd build; $(MAKE) install prefix=$(prefix)
161
  PREFIX=`pwd`/tmp; cd build; make install PREFIX="$${PREFIX}"
160
    su -c "chown -R root.root tmp && cd tmp; tar czf ../ecl-$(VERSION)-$(MACHINE).tgz * && cd .. && rm -rf tmp"
162
    su -c "chown -R root.root tmp && cd tmp; tar czf ../ecls-$(VERSION)-$(MACHINE).tgz * && cd .. && rm -rf tmp"
161
163
162
# This creates a ZIP file with a flattened directory structure
164
dist:
163
windows-dist: all
165
  cd dist; make-dist
164
  cd build; rm -rf $(TAR_DIR); mkdir $(TAR_DIR); \
165
  $(MAKE) flatinstall prefix=`pwd`/$(TAR_DIR); \
166
  zip -r $(TAR_DIR).zip $(TAR_DIR)
167
windows-nsi: all
168
  cd build; rm -rf $(TAR_DIR); mkdir $(TAR_DIR); \
169
  $(MAKE) flatinstall prefix=`pwd`/$(TAR_DIR)
170
  `pwd`/src/util/ecl_nsi.sh `pwd`/src/util/ecl.nsi build/$(TAR_DIR)
171
  makensis.exe build/$(TAR_DIR)/ecl.nsi
172
  mv build/$(TAR_DIR)/Setup.exe ecl-$(VERSION).exe
173
174
upload-frs:
175
  ecldir=`echo $(VERSION) | sed -e 's,\([0-9]*\.[0-9]*\)\.[0-9]*,\1,'` && \
176
  destdir=jjgarcia,ecls@frs.sourceforge.net:/home/frs/project/e/ec/ecls/ecls/ && \
177
  test -d frs || mkdir frs && \
178
  test -d frs/$$ecldir || mkdir frs/$$ecldir && \
179
  cp $(TAR_DIR).tgz src/CHANGELOG frs/$$ecldir && \
180
  cd frs && scp -rC $$ecldir $$destdir
181
  rm -rf frs