a7d4c042ad591ccc8bea372767ec3647ed580706
[gnus] / Makefile.in
1 prefix = @prefix@
2 datadir = @datadir@
3 lispdir = @lispdir@
4 srcdir = @srcdir@
5
6 @SET_MAKE@
7 EMACS = @EMACS@
8 XEMACS = @EMACS@
9
10 # # # # # # # # # # Release variables (for maintainer only):
11 #
12 # Files removed from `cvs export' output before creating the tar-ball:
13 CVS_IGNORE_FILES = .cvsignore contrib/.cvsignore etc/.cvsignore \
14   lisp/.cvsignore texi/.cvsignore texi/ps/.cvsignore .arch-inventory
15 # Name and mail address in ChangeLog format for the release commit:
16 COMMITTER = Lars Magne Ingebrigtsen  <lars@ingebrigtsen.no>
17 # CODENAME for development releases (CODENAME must have a trailing space,
18 # (e.g. "Oort ")
19 CODENAME = 
20 # Codename initial (lower case), e.g. 'n' for "No Gnus".
21 CIN =
22 # Files with hard-coded versions numbers:
23 RELEASE_COMMIT_FILES = lisp/ChangeLog lisp/gnus.el \
24   texi/ChangeLog texi/gnus.texi texi/message.texi texi/gnus-faq.texi
25 # Pattern matching previous version(s):
26 OLD_PATTERN = '5.10.[0-9]*\|0\.3'
27 # CVS tag of the previous version:
28 OLD_TAG     = v5-10-6
29 # CVS tag of the current release:
30 TAG  = v5-10
31 #
32 # Procedure:
33 # - release-bump-version
34 # - release-commit
35 # - release-files or release-files-signed
36 #
37 # # # # # # # # # # End of release variables
38
39 all: lick info
40
41 lick:
42         cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" all
43
44 install:
45         cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" install
46         cd texi && $(MAKE) EMACS="$(EMACS)" install
47         cd etc && $(MAKE) EMACS="$(EMACS)" install
48
49 list-installed-shadows:
50         cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" list-installed-shadows
51
52 remove-installed-shadows:
53         cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" remove-installed-shadows
54
55 uninstall:
56         cd lisp && $(MAKE) lispdir="$(lispdir)" uninstall
57         cd texi && $(MAKE) uninstall
58         cd etc && $(MAKE) uninstall
59
60 GNUS-NEWS: texi/gnus-news.texi
61         cd texi && $(MAKE) GNUS-NEWS
62
63 # Rule for Lars and nobody else.
64 some:
65         cd lisp && $(MAKE) EMACS="$(EMACS)" some
66 l:
67         cd lisp && $(MAKE) EMACS="$(EMACS)" clever
68
69 info:
70         cd texi && $(MAKE) EMACS="$(EMACS)" all
71
72 clean:
73         for i in lisp texi etc texi/ps; do (cd $$i; $(MAKE) clean); done
74         rm -f *.orig *.rej *~
75
76 elclean:
77         cd lisp && rm -f *.elc auto-autoloads.el custom-load.el gnus-load.el
78
79 x:
80         $(MAKE) EMACS=$(XEMACS)
81
82 xsome:
83         $(MAKE) EMACS="$(XEMACS)" some
84
85 distclean: clean
86         for i in lisp texi etc texi/ps; do (cd $$i; $(MAKE) distclean); done
87         rm -f config.log config.status config.cache Makefile
88
89 config.status: $(srcdir)/configure
90         $(SHELL) ./config.status --recheck
91 $(srcdir)/configure: $(srcdir)/configure.in
92         cd $(srcdir) && autoconf
93 Makefile: $(srcdir)/Makefile.in config.status
94         CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
95
96 # # # # # # # # # # Release targets (for maintainer only):
97
98 release-check-settings:
99         @echo
100         @echo "COMMITTER = '$(COMMITTER)'"
101         @echo "  (example: 'Foo Bar  <foo.bar@somewhere.invalid>')"
102         @echo "VERSION   = '$(VERSION)' (example: '5.10.6')"
103         @echo "CODENAME  = '$(CODENAME)' (example: 'No ')"
104         @echo "CIN       = '$(CIN)' (example: 'n', codename initial)"
105         @echo "TAG       = '$(TAG)' (example: 'v5-10-6')"
106         @echo "OLDTAG    = '$(OLDTAG)' (example: 'v5-10-5')"
107         @echo
108         @if [ x"$(VERSION)" = x ]; then echo "error: No VERSION given."; exit 1; else :; fi
109         @if [ x"$(TAG)" = x ]; then echo "error: No TAG given."; exit 1; else :; fi
110         @echo
111         @echo Settings checked successfully.
112         @echo
113         @echo You may now make...
114         @echo   release-bump-version
115         @echo   release-commit
116         @echo   release-files or release-files-signed
117
118 # Needs GNU grep and a recent GNU sed:
119 release-bump-version:   release-check-settings
120         sed -i -e '/^(defconst gnus-version-number /s,"$(OLD_PATTERN)","$(VERSION)",' lisp/gnus.el
121         sed -i -e '/^.newcommand{.gnusversionname}{Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi/gnus.texi
122         sed -i -e '/^This manual corresponds to [A-Za-z ]*Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi/gnus.texi
123         sed -i -e '/^corresponding to this manual is [A-Za-z ]*Gnusv/s,$(OLD_PATTERN),$(VERSION),' texi/message.texi
124         if [ "x$(CODENAME)" = "x" ]; then \