# Makefile for Texinfo/emacs.	-*- Indented-Text -*-
# Copyright (C) 1995 Free Software Foundation, Inc.

# This Makefile is for DJGPP v2.x

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Author: Brian J. Fox (bfox@ai.mit.edu)
#
#### Start of system configuration section. ####

srcdir= .
VPATH = $(srcdir)

#### End of system configuration section. ####

ELISP_SRCS = info.el makeinfo.el texinfo.el texnfo-upd.el \
	      texnfo-tex.el texinfmt.el informat.el detexinfo.el
ELISP_OBJS = info.elc makeinfo.elc texinfo.elc texnfo-upd.elc \
	      texnfo-tex.elc texinfmt.elc informat.elc detexinfo.elc

.SUFFIXES: .el .elc

.el.elc:
	@echo (setq load-path (cons nil load-path)) > elc.tmp
	$(EMACS) -batch -l elc.tmp -f batch-byte-compile $<
	del elc.tmp

all: $(ELISP_OBJS)
sub-all: all

informat.elc: info.elc
makeinfo.elc: texinfo.elc
texinfmt.elc: texinfo.elc
texinfmt.elc: texnfo-upd.elc

Makefile: Makefile.djg
	copy $< $@

realclean distclean: clean
	$(RM) Makefile *.log

clean: FORCE
	$(RM) *.elc

FORCE:

