Source

games / Makefile

Full commit
# Makefile for Glynn Clements Games 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.

# This XEmacs package contains independent single file lisp packages

VERSION = 1.05
AUTHOR_VERSION = 1.02
MAINTAINER = XEmacs Development Team <xemacs-beta@xemacs.org>
PACKAGE = xemacs-base
PACKAGE = games
PKG_TYPE = regular
REQUIRES = xemacs-base
CATEGORY = games

ELCS = gamegrid.elc snake.elc tetris.elc sokoban.elc

include ../../XEmacs.rules

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

srckit: srckit-std

binkit: all
	-rm -rf $(STAGING)/lisp/$(PACKAGE)
	-rm -f $(STAGING)/etc/sokoban.levels
	-mkdir -p $(STAGING)/lisp/$(PACKAGE)
	-mkdir -p $(STAGING)/etc
	$(RCOPY) ChangeLog *.el* $(STAGING)/lisp/$(PACKAGE)
	$(RCOPY) sokoban.levels $(STAGING)/etc
	(cd $(STAGING); \
	rm -f $(PACKAGE)-$(VERSION)-pkg.tar*; \
	$(TAR) $(EXCLUDES) -cf $(PACKAGE)-$(VERSION)-pkg.tar lisp/$(PACKAGE) \
		etc/sokoban.levels; \
	gzip -v9 $(PACKAGE)-$(VERSION)-pkg.tar)