Source

gnats / Makefile

Full commit
# Makefile for GNATS support lisp code

# This file is part of XEmacs.

# XEmacs 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.

# XEmacs 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 XEmacs; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

VERSION = 1.03
AUTHOR_VERSION = 3.101
MAINTAINER = XEmacs Development Team <xemacs-beta@xemacs.org>
PACKAGE = gnats
PKG_TYPE = regular
REQUIRES = mail-lib xemacs-base
CATEGORY = comm

ELCS = gnats-admin.elc gnats.elc send-pr.elc

include ../../XEmacs.rules

.PHONY: texi

all:: $(ELCS) auto-autoloads.elc texi

clean::
	rm -f $(ELCS) auto-autoloads.elc texi/*.info*

texi:
	$(MAKE) -C texi $(MFLAGS)

srckit: srckit-std

binkit: all
	rm -rf $(STAGING)/lisp/$(PACKAGE)
	rm -rf $(STAGING)/info/gnats.info* \
		$(STAGING)/info/send-pr.info*
	rm -rf $(STAGING)/etc/categories $(STAGING)/etc/$(PACKAGE)
	mkdir -p $(STAGING)/lisp/$(PACKAGE)
	mkdir -p $(STAGING)/etc/$(PACKAGE)
	mkdir -p $(STAGING)/info
	$(RCOPY) ChangeLog *.el* $(STAGING)/lisp/$(PACKAGE)
	$(RCOPY) texi/gnats.info* $(STAGING)/info
	$(RCOPY) texi/send-pr.info* $(STAGING)/info
	$(RCOPY) etc/categories $(STAGING)/etc
	$(RCOPY) etc/xemacs.org $(STAGING)/etc/$(PACKAGE)
	(cd $(STAGING); \
	rm -f $(PACKAGE)-$(VERSION)-pkg.tar*; \
	$(TAR) $(EXCLUDES) -cf $(PACKAGE)-$(VERSION)-pkg.tar lisp/$(PACKAGE) \
		info/gnats.info* info/send-pr.info* \
		etc/categories etc/$(PACKAGE); \
	gzip -v9 $(PACKAGE)-$(VERSION)-pkg.tar)