1 ############################################################################
2 # Makefile to install Gnus under Windows NT using nmake.
3 # Adrian Aichner, aichner@ecf.teradyne.com, Teradyne GmbH, 1999-07-14.
5 # Please specify path to the Gnus sources here, if $(MAKEDIR) is
10 # Please specify the path where you want Gnus installed:
12 # INSTALLDIR=c:\XEmacs\site-packages\pgnus-0.98
14 # Please specify the path to the XEmacs executable here:
16 # XEMACS=c:\XEmacs\XEmacs-21.1.8\i386-pc-win32\xemacs.exe
18 # Specify wheter you want to use XEmacs mail-lib package with UIDL support.
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)"
30 !if !exist("$(XEMACS)")
31 !error Please set XEMACS to point to XEmacs executable, "$(XEMACS)" does not exist.
34 !if "$(INSTALLDIR)" == ""
35 !error Please specify INSTALLDIR.
41 # protect paths containing whitespace
43 !if $(USE_XEMACS_MAIL_LIB) != 0
44 !if exist("$(LISPDIR)\pop3.el")
45 rename pop3.el pop3-not-used.el
47 !if exist("$(LISPDIR)\pop3.elc")
48 rename pop3.elc pop3-not-used.elc
50 @echo Gnus pop3.el not used, verify you have XEmacs mail-lib package.
52 @echo Consider using XEmacs mail-lib package by setting USE_XEMACS_MAIL_LIB.
54 "$(XEMACS)" $(FLAGS) -l ./dgnushack.el -f dgnushack-compile
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"
62 install: install-without-info info
64 # protect paths containing whitespace
65 $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) install
68 # protect paths containing whitespace
70 $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) all
76 del "$(LISPDIR)\*.elc"
79 $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
81 # protect paths containing whitespace
83 del "*.orig" "*.rej" "*.elc" "*~"
84 # protect paths containing whitespace
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
96 !message Please use $(MAKEDIR)\..\xemacs.mak instead.
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'.
107 all: gnus message emacs-mime
112 message: message.texi
115 emacs-mime: emacs-mime.texi
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
128 $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
129 del /f gnus.dvi gnus.ps texi2latex.elc
132 $(MAKE) /$(MAKEFLAGS) /f xemacs.mak $(VARDEFS) clean
133 del /f *.orig *.rej *.elc *~ gnus gnus-?? Makefile
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)"