1 | # Makefile.in for Jade version 4 |
---|
2 | # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk> |
---|
3 | # $Id: Makefile.in,v 1.1.1.2 2002-03-20 04:55:03 ghudson Exp $ |
---|
4 | # |
---|
5 | # This file is part of Jade. |
---|
6 | # |
---|
7 | # Jade is free software; you can redistribute it and/or modify it |
---|
8 | # under the terms of the GNU General Public License as published by |
---|
9 | # the Free Software Foundation; either version 2, or (at your option) |
---|
10 | # any later version. |
---|
11 | # |
---|
12 | # Jade is distributed in the hope that it will be useful, but |
---|
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | # GNU General Public License for more details. |
---|
16 | # |
---|
17 | # You should have received a copy of the GNU General Public License |
---|
18 | # along with Jade; see the file COPYING. If not, write to |
---|
19 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | |
---|
21 | ETAGS:= etags |
---|
22 | |
---|
23 | top_builddir=. |
---|
24 | VPATH=@srcdir@ |
---|
25 | |
---|
26 | ALL_SUBDIRS = intl src lisp man |
---|
27 | INSTALL_SUBDIRS = src lisp man |
---|
28 | |
---|
29 | all : build.h rules.mk DOC |
---|
30 | for dir in $(ALL_SUBDIRS); do \ |
---|
31 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
32 | done |
---|
33 | |
---|
34 | build.h : build-info config.status |
---|
35 | $(SHELL) $< $(host_type) $(version) \ |
---|
36 | '$(repdir)' '$(replispdir)' '$(repexecdir)' \ |
---|
37 | '$(repdocfile)' '$(repcommonexecdir)' >$@ |
---|
38 | |
---|
39 | rules.mk : rules.mk.sh config.status |
---|
40 | $(SHELL) $< '$(repdir)' '$(repcommonexecdir)' '$(repdocfile)' >$@ |
---|
41 | |
---|
42 | check : |
---|
43 | for dir in $(ALL_SUBDIRS); do \ |
---|
44 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
45 | done |
---|
46 | |
---|
47 | install : all installdirs |
---|
48 | for dir in $(INSTALL_SUBDIRS); do \ |
---|
49 | ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
50 | done |
---|
51 | $(INSTALL_DATA) DOC $(DESTDIR)$(repexecdir) |
---|
52 | $(INSTALL_SCRIPT) emulate-gnu-tar $(DESTDIR)$(repexecdir) |
---|
53 | $(INSTALL_SCRIPT) libtool $(DESTDIR)$(repcommonexecdir) |
---|
54 | $(INSTALL_DATA) rules.mk $(DESTDIR)$(repcommonexecdir) |
---|
55 | $(INSTALL_SCRIPT) install-aliases $(DESTDIR)$(repcommonexecdir) |
---|
56 | $(INSTALL_DATA) rep-debugger.el $(DESTDIR)$(emacssitelispdir) |
---|
57 | |
---|
58 | @echo "---------------------------------------------------------" |
---|
59 | @echo "Trying to install rep.m4 in $(DESTDIR)$(aclocaldir);" |
---|
60 | @echo "if this fails, install it manually in a suitable location" |
---|
61 | @echo "---------------------------------------------------------" |
---|
62 | -$(INSTALL_DATA) $(top_srcdir)/rep.m4 $(DESTDIR)$(aclocaldir) |
---|
63 | |
---|
64 | installdirs : mkinstalldirs |
---|
65 | $(SHELL) $< $(DESTDIR)$(repdir)/$(version) \ |
---|
66 | $(DESTDIR)$(bindir) $(DESTDIR)$(aclocaldir) \ |
---|
67 | $(DESTDIR)$(repcommonexecdir) $(DESTDIR)$(repexecdir) \ |
---|
68 | $(DESTDIR)$(emacssitelispdir) |
---|
69 | |
---|
70 | uninstall : |
---|
71 | -for dir in $(INSTALL_SUBDIRS); do \ |
---|
72 | ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
73 | done |
---|
74 | rm -rf $(DESTDIR)$(repdir)/$(version) |
---|
75 | rm -rf $(DESTDIR)$(repexecdir) |
---|
76 | rm -f $(DESTDIR)$(repcommonexecdir)/rules.mk |
---|
77 | rm -f $(DESTDIR)$(repcommonexecdir)/install-aliases |
---|
78 | rm -f $(DESTDIR)$(repcommonexecdir)/libtool |
---|
79 | rm -f $(DESTDIR)$(emacssitelispdir)/rep-debugger.el |
---|
80 | rm -f $(DESTDIR)$(aclocaldir)/rep.m4 |
---|
81 | |
---|
82 | DOC : src/repdoc |
---|
83 | src/repdoc DOC `find $(top_srcdir) -name '*.c' -print` |
---|
84 | |
---|
85 | src/repdoc : |
---|
86 | ( cd src && $(MAKE) repdoc ) |
---|
87 | |
---|
88 | NEWS : man/news.texi |
---|
89 | ( cd man && $(MAKE) ../NEWS ) |
---|
90 | |
---|
91 | tar : |
---|
92 | tar -zcT FILES -f librep.tar.gz |
---|
93 | |
---|
94 | clean : |
---|
95 | -for dir in $(ALL_SUBDIRS); do \ |
---|
96 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
97 | done |
---|
98 | rm -f *~ NEWS DOC TAGS build.h |
---|
99 | |
---|
100 | distclean : |
---|
101 | -for dir in $(ALL_SUBDIRS); do \ |
---|
102 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
103 | done |
---|
104 | rm -f config.cache config.h config.log config.status Makefile libtool |
---|
105 | rm -f *~ NEWS DOC TAGS build.h rules.mk librep.spec |
---|
106 | |
---|
107 | realclean : distclean |
---|
108 | |
---|
109 | tags: TAGS |
---|
110 | # |
---|
111 | # Use separate and explicit expressions rather than "(def.*" to avoid |
---|
112 | # grabbing: |
---|
113 | # ./lisp/rep.jl:54: (default-error-handler (car error-data) [...] |
---|
114 | # ./lisp/define.jl:146: (define-scan-internals body)) |
---|
115 | # |
---|
116 | TAGS : |
---|
117 | -rm -f $@ |
---|
118 | set -e; \ |
---|
119 | c_files=`find $(top_srcdir) -name '*.[hc]' -print`; \ |
---|
120 | rep_files=`find $(top_srcdir) -name '*.jl' -print`; \ |
---|
121 | ${ETAGS} --language=c $$c_files \ |
---|
122 | --language=none \ |
---|
123 | --regex='/[ \t]*DEFSTRING[ \t]*([ \t]*\([^ \t,]+\)/\1/' \ |
---|
124 | --regex='/[ \t]*DEFSYM[ \t]*([ \t]*\([^ \t,]+\)/Q\1/' \ |
---|
125 | --regex='/[ \t]*DEFSYM[ \t]*([ \t]*[^ \t,]+[ \t,]+"\([^"]+\)/\1/' \ |
---|
126 | --regex='/[ \t]*DEFUN\(_INT\)?[ \t]*([ \t]*"\([^"]+\)/\2/' \ |
---|
127 | $$c_files \ |
---|
128 | --language=lisp $$rep_files \ |
---|
129 | --language=none \ |
---|
130 | --regex='/[ \t]+([ \t]*defun[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
131 | --regex='/[ \t]+([ \t]*define[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
132 | --regex='/[ \t]+([ \t]*defmacro[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
133 | --regex='/[ \t]+([ \t]*defsubst[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
134 | --regex='/[ \t]+([ \t]*defconst[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
135 | --regex='/[ \t]+([ \t]*defvar[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \ |
---|
136 | --regex="/[ \t]+([ \t]*define-file-handler[ \t]+'\([^ \t)]+\)/\1/" \ |
---|
137 | --regex="/[ \t]+([ \t]*define-datum-printer[ \t]+'\([^ \t)]+\)/\1/"\ |
---|
138 | $$rep_files |
---|
139 | |
---|
140 | .PHONY: install uninstall tar nobak clean realclean TAGS tags distclean |
---|