Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 174 lines (136 sloc) 5.076 kB
c175751 Initial revision
Tanaka Akira authored
1 #
2 # Makefile for top level of zsh distribution
3 #
4 # Copyright (c) 1995-1997 Richard Coleman
5 # All rights reserved.
6 #
7 # Permission is hereby granted, without written agreement and without
8 # license or royalty fees, to use, copy, modify, and distribute this
9 # software and to distribute modified versions of this software for any
10 # purpose, provided that the above copyright notice and the following
11 # two paragraphs appear in all copies of this software.
12 #
13 # In no event shall Richard Coleman or the Zsh Development Group be liable
14 # to any party for direct, indirect, special, incidental, or consequential
15 # damages arising out of the use of this software and its documentation,
16 # even if Richard Coleman and the Zsh Development Group have been advised of
17 # the possibility of such damage.
18 #
19 # Richard Coleman and the Zsh Development Group specifically disclaim any
20 # warranties, including, but not limited to, the implied warranties of
21 # merchantability and fitness for a particular purpose. The software
22 # provided hereunder is on an "as is" basis, and Richard Coleman and the
23 # Zsh Development Group have no obligation to provide maintenance,
24 # support, updates, enhancements, or modifications.
25 #
26
27 subdir = .
28 dir_top = .
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
29 SUBDIRS = Doc Etc Src Test
c175751 Initial revision
Tanaka Akira authored
30
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
31 @VERSION_MK@
32
33 # source/build directories
34 VPATH = @srcdir@
35 sdir = @srcdir@
36 sdir_top = @top_srcdir@
37 INSTALL = @INSTALL@
38
39 @DEFS_MK@
c175751 Initial revision
Tanaka Akira authored
40
41 # ========== DEPENDENCIES FOR BUILDING ==========
42
43 # default target
236ae30 26699: dependencies for config.modules
Peter Stephenson authored
44 all: config.h config.modules
c175751 Initial revision
Tanaka Akira authored
45 @for subdir in Src Doc; do \
46 (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
47 done
48
49 # prepare module configuration
50 prep:
51 @cd Src && $(MAKE) $(MAKEDEFS) $@
52
53 META-FAQ: FORCE
54 @cd Doc && $(MAKE) $(MAKEDEFS) ../META-FAQ
55
d8ce980 22721: add pdf target to top Makefile.in
Andrey Borzenkov authored
56 dvi ps html info pdf:
17ca902 Peter Breitenlohner: Minor tweaks to some make targets.
Bart Schaefer authored
57 @cd Doc && $(MAKE) $(MAKEDEFS) $@
58
c175751 Initial revision
Tanaka Akira authored
59 # ========== DEPENDENCIES FOR INSTALLING ==========
60
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
61 # install stripped
62 install-strip:
63 $(MAKE) install STRIPFLAGS="-s"
64
65 # install/uninstall most things
782f780 Install functions before man pages to avoid error if yodl isn't insta…
Oliver Kiddle authored
66 install: install.bin install.modules install.fns install.man
67 uninstall: uninstall.bin uninstall.modules uninstall.fns uninstall.man
c175751 Initial revision
Tanaka Akira authored
68
69 # install/uninstall just the binary
70 install.bin uninstall.bin:
71 @cd Src && $(MAKE) $(MAKEDEFS) $@
72
73 # install/uninstall just the modules
74 install.modules uninstall.modules:
75 @cd Src && $(MAKE) $(MAKEDEFS) $@
76
77 # install/uninstall just the man pages
78 install.man uninstall.man:
79 @cd Doc && $(MAKE) $(MAKEDEFS) $@
80
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
81 # install/uninstall just the shell functions
82 install.fns:
a59b510 Function installation information now in config.modules
Peter Stephenson authored
83 if test x$(fndir) != x && test x$(fndir) != xno; then \
84 test x$(sitefndir) != xno && \
7270c28 14401: workaround for script execution under Cygwin
Andrey Borzenkov authored
85 $(SHELL) $(sdir_top)/mkinstalldirs $(DESTDIR)$(sitefndir); \
a59b510 Function installation information now in config.modules
Peter Stephenson authored
86 sdir_top="$(sdir_top)" fndir="$(fndir)" dir_top="$(dir_top)" \
3d5bece 21500: Add script and function as framework for new user stuff.
Peter Stephenson authored
87 scriptdir="$(scriptdir)" \
a59b510 Function installation information now in config.modules
Peter Stephenson authored
88 FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \
89 INSTALL_DATA="$(INSTALL_DATA)" \
40df706 22360, 22365: support version 2 of Yodl
Peter Stephenson authored
90 INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \
a59b510 Function installation information now in config.modules
Peter Stephenson authored
91 DESTDIR="$(DESTDIR)" VERSION="$(VERSION)" \
92 $(SHELL) $(sdir_top)/Config/installfns.sh || exit 1; \
93 fi; \
94 exit 0
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
95
96 uninstall.fns:
a59b510 Function installation information now in config.modules
Peter Stephenson authored
97 if test x$(fndir) != x && test x$(fndir) != xno; then \
98 fndir="$(fndir)" dir_top="$(dir_top)" \
3d5bece 21500: Add script and function as framework for new user stuff.
Peter Stephenson authored
99 scriptdir="$(scriptdir)" \
a59b510 Function installation information now in config.modules
Peter Stephenson authored
100 FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \
101 DESTDIR="$(DESTDIR)" VERSION="$(VERSION)" \
102 $(SHELL) $(sdir_top)/Config/uninstallfns.sh || exit 1; \
103 fi; \
104 exit 0
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
105
c175751 Initial revision
Tanaka Akira authored
106 # install/uninstall just the info pages
107 install.info uninstall.info:
108 @cd Doc && $(MAKE) $(MAKEDEFS) $@
109
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
110 # install/uninstall just the HTML manual
111 install.html uninstall.html:
112 @cd Doc && $(MAKE) $(MAKEDEFS) $@
113
114 # ========== DEPENDENCIES FOR TESTING ==========
115 check test:
116 cd Test ; $(MAKE) check
117
c175751 Initial revision
Tanaka Akira authored
118 # ========== DEPENDENCIES FOR CLEANUP ==========
119
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
120 @CLEAN_MK@
c175751 Initial revision
Tanaka Akira authored
121
122 distclean-here:
d83af1a 19420: Update configure.ac for better Autconf 2.50 support.
Peter Stephenson authored
123 rm -f Makefile config.h config.status config.log config.cache config.modules config.modules.sh stamp-h Config/defs.mk
59bbc0c 22573: rm -rf autom4te.cache on distclean
Peter Stephenson authored
124 rm -rf autom4te.cache
c175751 Initial revision
Tanaka Akira authored
125
126 realclean-here:
127 cd $(sdir) && rm -f config.h.in stamp-h.in configure
128
129 # ========== DEPENDENCIES FOR MAINTENANCE ==========
130
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
131 @CONFIG_MK@
c175751 Initial revision
Tanaka Akira authored
132
133 config: config.h
134
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
135 config.status: $(sdir)/configure
7270c28 14401: workaround for script execution under Cygwin
Andrey Borzenkov authored
136 $(SHELL) ./config.status --recheck
c175751 Initial revision
Tanaka Akira authored
137
caea0db 19338 etc.: remove support for autoconf before 2.50
Peter Stephenson authored
138 $(sdir)/configure: $(sdir)/aclocal.m4 $(sdir)/aczsh.m4 $(sdir)/configure.ac
c175751 Initial revision
Tanaka Akira authored
139 cd $(sdir) && autoconf
140
c9433cb Added back the stamp-h idiom which allows us to know when config.h
Wayne Davison authored
141 config.h: stamp-h
142 stamp-h: $(sdir)/config.h.in config.status
143 cd $(dir_top) && $(SHELL) ./config.status config.h $@
144
236ae30 26699: dependencies for config.modules
Peter Stephenson authored
145 config.modules: $(sdir)/config.h.in config.status config.modules.sh
146 cd $(dir_top) && $(SHELL) ./config.status $@ && \
147 $(SHELL) ./config.modules.sh
c175751 Initial revision
Tanaka Akira authored
148
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
149 $(sdir)/config.h.in: $(sdir)/stamp-h.in
d83af1a 19420: Update configure.ac for better Autconf 2.50 support.
Peter Stephenson authored
150 $(sdir)/stamp-h.in: $(sdir)/configure.ac \
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
151 $(sdir)/aclocal.m4 $(sdir)/aczsh.m4
c175751 Initial revision
Tanaka Akira authored
152 cd $(sdir) && autoheader
ff53f1c Make config.h and related dependencies relative to $(sdir).
Bart Schaefer authored
153 echo > $(sdir)/stamp-h.in
c175751 Initial revision
Tanaka Akira authored
154
155 # ========== DEPENDENCIES FOR DISTRIBUTION ==========
156
157 DISTNAME = zsh-$(VERSION)
158
159 targz-src: $(DISTNAME).tar.gz
160 $(DISTNAME).tar.gz: FORCE
161 @$(sdir_top)/Util/mkdisttree.sh $(DISTNAME) $(sdir_top) $(dir_top) SRC \
162 $(MAKE) $(MAKEDEFS)
163 tar cf - $(DISTNAME) | gzip -9 > $@
164 rm -rf $(DISTNAME)
165
166 targz-doc: $(DISTNAME)-doc.tar.gz
167 $(DISTNAME)-doc.tar.gz: FORCE
168 @$(sdir_top)/Util/mkdisttree.sh $(DISTNAME) $(sdir_top) $(dir_top) DOC \
169 $(MAKE) $(MAKEDEFS)
170 tar cf - $(DISTNAME) | gzip -9 > $@
171 rm -rf $(DISTNAME)
172
173 FORCE:
Something went wrong with that request. Please try again.