/[ecl]/ecl/Makefile.in
ViewVC logotype

Contents of /ecl/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (show annotations)
Tue Aug 5 14:09:32 2008 UTC (5 years, 8 months ago) by jjgarcia
Branch: MAIN
CVS Tags: ECL_0_9l, HEAD
Changes since 1.21: +2 -2 lines
Change CVS server.
1 # DIST: This is the distribution Makefile for ECL. configure can
2 # DIST: make most of the changes to this file you might want, so try
3 # DIST: that first.
4
5 # make all to compile and build Emacs.
6 # make install to install it.
7 # make TAGS to update tags tables.
8 #
9 # make clean or make mostlyclean
10 # Delete all files from the current directory that are normally
11 # created by building the program. Don't delete the files that
12 # record the configuration. Also preserve files that could be made
13 # by building, but normally aren't because the distribution comes
14 # with them.
15 #
16 # Delete `.dvi' files here if they are not part of the distribution.
17 #
18 # make distclean
19 # Delete all files from the current directory that are created by
20 # configuring or building the program. If you have unpacked the
21 # source and built the program without creating any other files,
22 # `make distclean' should leave only the files that were in the
23 # distribution.
24 #
25 # make realclean
26 # Delete everything from the current directory that can be
27 # reconstructed with this Makefile. This typically includes
28 # everything deleted by distclean.
29
30 SHELL = /bin/sh
31 MACHINE = @MACHINE_VERSION@
32
33 # ========================= Last release ================================
34
35 VERSION=@PACKAGE_VERSION@
36 WWW=http://ecls.sourceforge.net/
37 ADDRESS=anonymous@ecls.cvs.sourceforge.net:/cvsroot/ecls
38
39 # ==================== Things `configure' Might Edit ====================
40
41 # Where to find the source code.
42 # This is set by the configure script's `--srcdir' option.
43 srcdir=@srcdir@
44
45 prefix=@prefix@
46 exec_prefix=@exec_prefix@
47 bindir=@bindir@
48 infodir=@infodir@
49 mandir=@mandir@
50 libdir=@libdir@
51
52 # What to release
53 TAR_CONTENTS=Makefile.in README.1st LGPL ANNOUNCEMENT Copyright doc \
54 configure src/c src/cmp src/clos src/CHANGELOG src/lsp src/doc \
55 src/h src/gmp src/config* src/install.sh src/Makefile.in \
56 src/util contrib/ src/clx src/gc src/*.in src/*.m4 src/gabriel \
57 src/tests/Makefile.in src/ansi-tests/Makefile.in msvc examples
58
59 # ==================== Utility Programs for the Build ====================
60
61 # Allow the user to specify the install program.
62 @SET_MAKE@
63 INSTALL = @INSTALL@
64 INSTALL_PROGRAM = @INSTALL_PROGRAM@
65 INSTALL_DATA = @INSTALL_DATA@
66
67 # ============================= Build ==============================
68
69 all: build/Makefile
70 cd build; $(MAKE)
71 .PHONY: all
72
73 Makefile: Makefile.in build/config.status
74 (cd build; ./config.status)
75
76 # ==================== Installation ====================
77
78 INSTALL_TARGET = @INSTALL_TARGET@
79
80 install: build/Makefile
81 cd build; $(MAKE) $(INSTALL_TARGET)
82 uninstall:
83 cd build; $(MAKE) uninstall
84
85 # ==================== Cleaning up and miscellanea ====================
86
87 # `clean'
88 # Delete all files from the current directory that are normally
89 # created by building the program. Don't delete the files that
90 # record the configuration. Also preserve files that could be made
91 # by building, but normally aren't because the distribution comes
92 # with them.
93 #
94 clean:
95 cd build; $(MAKE) clean
96
97 # `distclean'
98 # Delete all files from the current directory that are created by
99 # configuring or building the program. If you have unpacked the
100 # source and built the program without creating any other files,
101 # `make distclean' should leave only the files that were in the
102 # distribution.
103
104 distclean: clean
105 rm -rf build Makefile
106
107 # `realclean'
108 # Delete everything from the current directory that can be
109 # reconstructed with this Makefile.
110 # One exception, however: `make realclean' should not delete
111 # `configure' even if `configure' can be remade using a rule in the
112 # Makefile. More generally, `make realclean' should not delete
113 # anything that needs to exist in order to run `configure' and then
114 # begin to build the program.
115 realclean: distclean
116
117 # ==================== Various means of distribution ====================
118
119 TAR_DIR=ecl-$(VERSION)
120
121 doc: build/doc/index.html
122 -mkdir doc
123 (cd build/doc; make html); cp build/doc/*.html doc
124 build/doc/index.html:
125 cd build/doc; $(MAKE)
126
127 source-dist: $(TAR_DIR).tgz
128
129 rpmdir=$(shell rpm --showrc | grep '^-[0-9]*:.*[^{]_topdir' | sed 's,^.*topdir[ ]*\(.*\)[ ]*,\1,')
130 rpmbuild=$(shell if [ -z `which rpmbuild` ]; then echo "rpm"; else echo "rpmbuild"; fi)
131
132 # OBSOLETE!!!
133 # rpm: doc
134 # -rm -rf $(TAR_DIR)
135 # mkdir $(TAR_DIR) $(TAR_DIR)/src \
136 # $(TAR_DIR)/src/tests $(TAR_DIR)/src/ansi-tests && \
137 # for i in $(TAR_CONTENTS); do cp -rf $$i $(TAR_DIR)/$$i; done && \
138 # tar -cz --exclude '*~' --exclude '#*' --exclude 'CVS' -f $(rpmdir)/SOURCES/$(TAR_DIR).tgz $(TAR_DIR)
139 # if [ -f /etc/SuSE-release ]; then HOST=SUSE; else HOST=REDHAT; fi; \
140 # cat src/util/ecl.spec |\
141 # sed 's,ECL_VERSION,$(VERSION),;s,^#% '$${HOST}' ,,g;'|\
142 # grep -v '^#% ' > $(rpmdir)/SPECS/ecl.spec;
143 # rpm -ba $(rpmdir)/SPECS/ecl.spec
144
145 $(TAR_DIR):
146 cvs -z3 -d:pserver:$(ADDRESS) co ecl && mv ecl $(TAR_DIR)
147 $(TAR_DIR).tgz: $(TAR_DIR)
148 cd $(TAR_DIR) && cvs update -C -P -d
149 tar -cz --exclude '*~' --exclude '.#*' -f $(TAR_DIR).tgz $(TAR_DIR)
150
151 binary-dist: all
152 su -c "rm -rf tmp"
153 mkdir tmp
154 for i in tmp$(bindir) tmp$(infodir) tmp$(mandir) tmp$(libdir); do \
155 (echo $$i; IFS="/"; \for k in $$i; do echo $$k; (test -d $$k || mkdir $$k); chmod 755 $$k; cd $$k; done); \
156 done
157 prefix=`pwd`/tmp; cd build; $(MAKE) install prefix=$(prefix)
158 su -c "chown -R root.root tmp && cd tmp; tar czf ../ecl-$(VERSION)-$(MACHINE).tgz * && cd .. && rm -rf tmp"
159
160 # This creates a ZIP file with a flattened directory structure
161 windows-dist: all
162 cd build; rm -rf $(TAR_DIR); mkdir $(TAR_DIR); \
163 $(MAKE) flatinstall prefix=`pwd`/$(TAR_DIR); \
164 zip -r $(TAR_DIR).zip $(TAR_DIR)
165 windows-nsi: all
166 cd build; rm -rf $(TAR_DIR); mkdir $(TAR_DIR); \
167 $(MAKE) flatinstall prefix=`pwd`/$(TAR_DIR)
168 `pwd`/src/util/ecl_nsi.sh `pwd`/src/util/ecl.nsi build/$(TAR_DIR)
169 makensis.exe build/$(TAR_DIR)/ecl.nsi
170 mv build/$(TAR_DIR)/Setup.exe ecl-$(VERSION).exe

  ViewVC Help
Powered by ViewVC 1.1.5