(archive-tmpdir): Make the prefix of the temporary
[bpt/emacs.git] / lisp / Makefile
1 #
2 # Maintenance productions for the Lisp directory
3 #
4 EMACS = emacs
5 SOURCES = *.el COPYING Makefile
6 lisptagsfiles1 = [a-zA-Z]*.el
7 lisptagsfiles2 = [a-zA-Z]*/[a-zA-Z]*.el
8 ETAGS = ../lib-src/etags
9
10 dontcompilefiles: bindings.el blessmail.el bruce.el cus-load.el cus-start.el
11 dontcompilefiles: forms-d2.el forms-pass.el
12 dontcompilefiles: latin-1.el latin-2.el latin-3.el latin-4.el latin-5.el
13 dontcompilefiles: loaddefs.el loadup.el mule-conf.el patcomp.el
14 dontcompilefiles: paths.el sc.el subdirs.el term-nasty.el version.el
15
16 doit:
17
18 custom-deps: doit
19 subdirs=`find . -type d -print`; \
20 for file in $$subdirs; do \
21 case $$file in */Old | */RCS | */=* ) ;; \
22 *) wins="$$wins $$file" ;; \
23 esac; \
24 done; \
25 echo Directories: $$wins; \
26 $(EMACS) -batch -l cus-dep -f custom-make-dependencies $$wins
27
28 finder-data: doit
29 subdirs=`find . -type d -print`; \
30 for file in $$subdirs; do \
31 case $$file in */Old | */RCS | */=* ) ;; \
32 *) wins="$$wins $$file" ;; \
33 esac; \
34 done; \
35 echo Directories: $$wins; \
36 $(EMACS) -batch -l finder -f finder-compile-keywords-make-dist $$wins
37
38 autoloads: doit
39 subdirs=`find . -type d -print`; \
40 for file in $$subdirs; do \
41 case $$file in */Old | */RCS | */=* ) ;; \
42 *) wins="$$wins $$file" ;; \
43 esac; \
44 done; \
45 echo Directories: $$wins; \
46 $(EMACS) -batch -f batch-update-autoloads $$wins
47
48 update-subdirs: doit
49 subdirs=`find . -type d -print`; \
50 for file in $$subdirs; do \
51 case $$file in */Old | */RCS | */=* ) ;; \
52 *) wins="$$wins $$file" ;; \
53 esac; \
54 done; \
55 for file in $$wins; do \
56 ../update-subdirs $$file; \
57 done;
58
59 updates: doit
60 subdirs=`find . -type d -print`; \
61 for file in $$subdirs; do \
62 case $$file in */Old | */RCS | */=* ) ;; \
63 *) wins="$$wins $$file" ;; \
64 esac; \
65 done; \
66 for file in $$wins; do \
67 ../update-subdirs $$file; \
68 done; \
69 echo Directories: $$wins; \
70 $(EMACS) -batch -l cus-dep -f custom-make-dependencies $$wins; \
71 $(EMACS) -batch -l finder -f finder-compile-keywords-make-dist $$wins; \
72 $(EMACS) -batch -f batch-update-autoloads $$wins
73
74 TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
75 ${ETAGS} $(lisptagsfiles1) $(lisptagsfiles2)
76
77 TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
78 ${ETAGS} -o TAGS-LISP \
79 $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)