1# Process this file with automake to produce Makefile.in
2#
3# Copyright (C) 2010 COR Entertainment, LLC.
4#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License
7# as published by the Free Software Foundation; either version 2
8# of the License, or (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13#
14# See the GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19#
20
21SUBDIRS = source
22
23ACLOCAL_AMFLAGS = -I m4
24
25# Alien Arena documents to be installed in $docdir
26if INSTALL_DOCS
27dist_doc_DATA = \
28	docs/license.txt \
29	docs/README.txt \
30	README
31endif
32
33# Alien Arena icon
34dist_icon_DATA = alienarena.png
35
36# FUSE game server browser and Server management scripts
37# COPYING and INSTALL are GNU/FSF-supplied documents.
38EXTRA_DIST = \
39	Tools/fuse.tar.gz \
40	Tools/LinuxScripts \
41	COPYING \
42	INSTALL
43
44# remove svn directories from distribution staging area after creating
45#  distribution in staging area and before running archiver
46# but, it is probably a better idea to export the repository to the
47#  staging area since export does not include the .svn parts
48#
49# copy noinst DATA to the distribution directory. while partitioning the
50# data files into subdirectory groups solves the problem with exceeding
51# command length limits for installation, it does not help with tarball
52# creation.
53#
54dist-hook:
55	rm -rf `find $(distdir) -name .svn`
56	$(foreach GAMEDIR, $(sort $(dir $(gamedata_files))),$(shell mkdir -p $(distdir)/$(GAMEDIR) ))
57	$(foreach GAMEFILE, $(gamedata_files), $(shell cp -p $(srcdir)/$(GAMEFILE) $(distdir)/$(GAMEFILE)))
58
59#
60# Alternate Install
61# This non-standard target is used for traditional single directory,
62# in-place install. Good for map makers, frequent SVN updates.
63# Also, maybe the preferable installation for Game Server Providers doing
64#   dedicated server only builds
65#
66# Use:
67#  ./configure --enable-alternate-install && make && make install-alternate
68#
69# Note: this does not support program name translation and other autoconf
70#   features.
71#
72install-alternate:
73if ALTERNATE_INSTALL
74if BUILD_CLIENT
75	cp $(top_builddir)/source/alienarena@EXEEXT@ $(srcdir)/alienarena@EXEEXT@
76endif
77if BUILD_UNIX
78	cp $(top_builddir)/source/alienarena-ded $(srcdir)/alienarena-ded
79endif
80else
81	@echo "make install-alternate requires configuring with --enable-alternate-install"
82endif
83
84#
85# install/uninstall added rules for alternate-install to prevent "undefined" behaviour.
86#
87install-data-local:
88if ALTERNATE_INSTALL
89	@echo "Alternate install: Use "make install-alternate"!!!
90	exit 1
91endif
92
93uninstall-local:
94if ALTERNATE_INSTALL
95	@echo "Alternate install. Manual uninstall required!!!"
96	exit 1
97endif
98
99
100include game_data.am
101