File: Makefile.am

package info (click to toggle)
alien-arena 7.66%2Bdfsg-6
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, sid
  • size: 9,652 kB
  • sloc: ansic: 113,704; cpp: 41,133; sh: 4,507; makefile: 549; ruby: 438
file content (97 lines) | stat: -rw-r--r-- 3,063 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Process this file with automake to produce Makefile.in
#
# Copyright (C) 2010 COR Entertainment, LLC.
#
# 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
# of the License, 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.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

SUBDIRS = source

ACLOCAL_AMFLAGS = -I m4 

# Alien Arena documents to be installed in $docdir
if INSTALL_DOCS
dist_doc_DATA = \
	docs/license.txt \
	docs/README.txt \
	README
endif

# Alien Arena icon
dist_icon_DATA = alienarena.png

# FUSE game server browser and Server management scripts
# COPYING and INSTALL are GNU/FSF-supplied documents.
EXTRA_DIST = \
	Tools/fuse.tar.gz \
	Tools/LinuxScripts \
	COPYING \
	INSTALL

# remove svn directories from distribution staging area after creating
#  distribution in staging area and before running archiver
# but, it is probably a better idea to export the repository to the
#  staging area since export does not include the .svn parts
#
# copy noinst DATA to the distribution directory. while partitioning the
# data files into subdirectory groups solves the problem with exceeding
# command length limits for installation, it does not help with tarball
# creation. 
#
dist-hook:
	rm -rf `find $(distdir) -name .svn`
	$(foreach GAMEDIR, $(sort $(dir $(gamedata_files))),$(shell mkdir -p $(distdir)/$(GAMEDIR) ))
	$(foreach GAMEFILE, $(gamedata_files), $(shell cp -p $(srcdir)/$(GAMEFILE) $(distdir)/$(GAMEFILE)))

#
# Alternate Install
# This non-standard target is used for traditional single directory, 
# in-place install. Good for map makers, frequent SVN updates.
# Also, maybe the preferable installation for Game Server Providers doing
#   dedicated server only builds
#
# Use: 
#  ./configure --enable-alternate-install && make && make install-alternate
#
# Note: this does not support program name translation and other autoconf
#   features.
#
install-alternate:
if ALTERNATE_INSTALL
if BUILD_CLIENT
	cp $(top_builddir)/source/alienarena@EXEEXT@ $(srcdir)/alienarena@EXEEXT@
endif	
if BUILD_UNIX	
	cp $(top_builddir)/source/alienarena-ded $(srcdir)/alienarena-ded
endif
else
	@echo "make install-alternate requires configuring with --enable-alternate-install"
endif		

#
# install/uninstall added rules for alternate-install to prevent "undefined" behaviour. 
#
install-data-local:
if ALTERNATE_INSTALL
	@echo "Alternate install: Use "make install-alternate"!!!
	exit 1
endif

uninstall-local:
if ALTERNATE_INSTALL
	@echo "Alternate install. Manual uninstall required!!!"
	exit 1
endif