* gnus-sum.el (gnus-highlight-selected-summary)
[gnus] / xemacs.mak
1 ############################################################################
2 # Makefile to install Gnus under Windows NT using nmake.
3 # Adrian Aichner, aichner@ecf.teradyne.com, Teradyne GmbH, 1999-07-14.
4 #
5 # Please specify path to the Gnus sources here, if $(MAKEDIR) is
6 # inappropriate:
7 #
8 GNUSDIR=$(MAKEDIR)
9 #
10 # Please specify the path where you want Gnus installed:
11 #
12 # INSTALLDIR=c:\XEmacs\site-packages\pgnus-0.98
13 #
14 # Please specify the path to the XEmacs executable here:
15 #
16 # XEMACS=c:\XEmacs\XEmacs-21.1.8\i386-pc-win32\xemacs.exe
17 #
18 # Specify wheter you want to use XEmacs mail-lib package with UIDL support.
19 #
20 USE_XEMACS_MAIL_LIB=0
21 #
22 ############################################################################
23 # Do not change anything below this line.
24 MANDIR=$(GNUSDIR)\texi
25 LISPDIR=$(GNUSDIR)\lisp
26 INFODIR=$(INSTALLDIR)\info
27 FLAGS=-batch -q -no-site-file
28 VARDEFS=XEMACS="$(XEMACS)" INFODIR="$(INFODIR)" MANDIR="$(MANDIR)" FLAGS="$(FLAGS)"
29
30 !if !exist("$(XEMACS)")
31 !error Please set XEMACS to point to XEmacs executable, "$(XEMACS)" does not exist.
32 !endif
33
34 !if "$(INSTALLDIR)" == ""
35 !error Please specify INSTALLDIR.
36 !endif
37
38 all: lick info
39
40 lick:
41 #       protect paths containing whitespace
42         cd "$(LISPDIR)"
43 !if $(USE_XEMACS_MAIL_LIB) != 0
44 !if exist("$(LISPDIR)\pop3.el")
45         rename pop3.el pop3-not-used.el
46 !endif
47 !if exist("$(LISPDIR)\pop3.elc")
48         rename pop3.elc pop3-not-used.elc
49 !endif
50         @echo Gnus pop3.el not used, verify you have XEmacs mail-lib package.
51 !else
52         @echo Consider using XEmacs mail-lib package by setting USE_XEMACS_MAIL_LIB.
53 !endif
54         "$(XEMACS)" $(FLAGS) -l ./dgnushack.el -f dgnushack-compile
55
56 install-without-info: lick
57         -rmdir /s /q "$(INSTALLDIR)"
58         xcopy /i "$(LISPDIR)\*.el" "$(INSTALLDIR)\lisp"
59         xcopy /i "$(LISPDIR)\*.elc" "$(INSTALLDIR)\lisp"
60         xcopy /i /s "$(GNUSDIR)\etc" "$(INSTALLDIR)\etc"
61
62 install: install-without-info info
63         cd "$(MANDIR)"
64 #       protect paths containing whitespace
65         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) install
66
67 info:
68 #       protect paths containing whitespace
69         cd "$(MANDIR)"
70         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) all
71
72 clean:
73         del *.orig *.rej
74
75 elclean:
76         del "$(LISPDIR)\*.elc"
77
78 distclean:
79         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
80         del *~
81 #       protect paths containing whitespace
82         cd "$(LISPDIR)"
83         del "*.orig" "*.rej" "*.elc" "*~"
84 #       protect paths containing whitespace
85         cd "$(MANDIR)"
86         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) distclean
87 ############################################################################
88 # Subsidiary makefile to install Gnus under Windows NT using nmake.
89 # Adrian Aichner, aichner@ecf.teradyne.com, Teradyne GmbH, 1999-07-14.
90 ############################################################################
91 # Do not change anything below this line.
92 # No spaces are allowed due to inference rule limitation:
93 MAKEINFO="$(XEMACS)" $(FLAGS) -l texinfmt -f batch-texinfo-format
94
95 !if "$(XEMACS)" == ""
96 !message Please use $(MAKEDIR)\..\xemacs.mak instead.
97 !error
98 !endif
99
100 !if ["$(XEMACS)" $(FLAGS) -eval \
101 "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"]
102 !message Install `texinfo' in XEmacs from Options->Manage Packages->List & Install.
103 !message Without it Gnus info documentation cannot be built by XEmacs!
104 !error Cannot build `info' without `texinfo'.
105 !endif
106
107 all: gnus message emacs-mime
108
109 gnus: gnus.texi
110         $(MAKEINFO) "$**"
111
112 message: message.texi
113         $(MAKEINFO) "$**"
114
115 emacs-mime: emacs-mime.texi
116         $(MAKEINFO) "$**"
117
118 clean:
119         del gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
120         *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
121         gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
122         gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
123         gnus.latexi*~* xface.tex picons.tex smiley.tex *.latexi
124
125 makeinfo: all
126
127 veryclean:
128         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
129         del /f gnus.dvi gnus.ps texi2latex.elc
130
131 distclean:
132         $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
133         del /f *.orig *.rej *.elc *~ gnus gnus-?? Makefile
134         del /f message
135         del /f emacs-mime
136
137 install: all
138         -mkdir "$(INFODIR)"
139         xcopy /i /s "$(MANDIR)\dir" "$(INFODIR)"
140         xcopy /i /s "$(MANDIR)\gnus" "$(INFODIR)"
141         xcopy /i /s "$(MANDIR)\gnus-??" "$(INFODIR)"
142         xcopy /i /s "$(MANDIR)\message" "$(INFODIR)"
143         xcopy /i /s "$(MANDIR)\emacs-mime" "$(INFODIR)"