1
by luke-jr
Unify tags/branches of modules released together |
1 |
# uninstaller name
|
2 |
uninstaller=@progname@@executable_suffix@-uninstall |
|
3 |
||
4 |
# data locations
|
|
5 |
armadatadir=${aa_datadir} |
|
6 |
texturedir=${armadatadir} |
|
7 |
sounddir=${armadatadir} |
|
8 |
languagedir=${armadatadir} |
|
9 |
modeldir=${armadatadir} |
|
10 |
musicdir=${armadatadir} |
|
11 |
||
12 |
# include $(top_srcdir)/Makefile.paths
|
|
13 |
include $(top_srcdir)/Makefile.manual
|
|
14 |
||
15 |
# what goes into the distribution
|
|
47
by z-man
Merging branch 0.2.8 from revision 4667 to 4705: |
16 |
EXTRA_DIST = README-DEVELOPER README-Subversion README-SDL \ |
1
by luke-jr
Unify tags/branches of modules released together |
17 |
armagetron.kdevelop armagetron.kdevelop.pcs armagetron.kdevses tron.ico \
|
103
by z-man
Added win32 to packed files so the Windows build can be done from a tarball |
18 |
models sound textures bootstrap.sh music accustomdir.m4 fingerprint \
|
19 |
win32
|
|
1
by luke-jr
Unify tags/branches of modules released together |
20 |
# language/update.py
|
21 |
||
22 |
# resource is included as a subdir for the purpose of keeping this makefile short and delegating
|
|
23 |
# resource management to a more appropriate place anyway
|
|
24 |
SUBDIRS = src resource batch config desktop www-root |
|
25 |
||
26 |
# special tasks to do if we're building the master server
|
|
27 |
if BUILDMASTER
|
|
28 |
masterInstallTasks= cd $(DESTDIR)$(bindir); mv armagetronad_main_master$(EXEEXT) @prognamebase@-master$(executable_suffix) |
|
29 |
masterUninstallTasks=rm -f $(DESTDIR)$(bindir)/@prognamebase@-master$(executable_suffix) |
|
30 |
else
|
|
31 |
masterInstallTasks=echo 'No tasks for the master server' |
|
32 |
masterUninstallTasks=echo 'No tasks for the master server' |
|
33 |
endif
|
|
34 |
||
35 |
languagedata=language/english_base.txt language/english_base_notranslate.txt language/american.txt language/british.txt\ |
|
985
by Daniel Lee Harple
Added Russian language translation. Reference bug #591386 |
36 |
language/deutsch.txt language/french.txt language/spanish.txt language/polish.txt language/russian.txt |
1
by luke-jr
Unify tags/branches of modules released together |
37 |
|
38 |
nobase_dist_language_DATA=language/languages.txt.in $(languagedata) language/update.py |
|
39 |
||
40 |
# What gets installed
|
|
41 |
||
42 |
if NEEDDATA
|
|
43 |
# install media data only when it is needed
|
|
44 |
nobase_texture_DATA=textures/cycle_body.png textures/cycle_wheel.png textures/dir_wall.png\ |
|
45 |
textures/floor_a.png textures/floor_b.png textures/floor.png textures/font_extra.png\
|
|
46 |
textures/font.png textures/font_s.png textures/icon.png textures/KGN_logo.png textures/rim_wall.png\
|
|
47 |
textures/shadow.png textures/sky.png textures/title.jpg\
|
|
727
by luke-jr
font.ttf is gone |
48 |
textures/Armagetronad.ttf |
1
by luke-jr
Unify tags/branches of modules released together |
49 |
|
50 |
nobase_sound_DATA=sound/1voicemale.ogg sound/announcerGO.ogg sound/expl.ogg\ |
|
51 |
sound/2voicemale.ogg sound/cycle_turn.ogg sound/grind.ogg\
|
|
52 |
sound/3voicemale.ogg sound/cyclrun.ogg sound/zone_spawn.ogg |
|
53 |
||
54 |
nobase_music_DATA=music/titletrack.ogg music/when.ogg music/doIknowyou.ogg\ |
|
55 |
music/fortresswalk.ogg music/default.m3u music/fortresswalk.aatrack |
|
56 |
||
57 |
||
58 |
nobase_model_DATA=models/cycle_body.mod models/cycle_front.mod models/cycle_rear.mod |
|
59 |
endif
|
|
60 |
||
61 |
nobase_language_DATA=language/languages.txt $(languagedata) |
|
62 |
||
63 |
doxy: |
|
64 |
cd src/doc && doxygen Doxyfile |
|
65 |
cd ../../
|
|
66 |
||
67 |
# generate configure.ac with version hardcoded and ChangeLog
|
|
19
by z-man
Merging branch 0.2.8 from revision 4612 to 4640: |
68 |
dist-hook-scm: |
957
by z-man
Merging branch 0.2.8 from revision 9322 to 9356: |
69 |
# replace dynamic version in configure.ac with the version this build is configured with,
|
70 |
# as well as default package and program name
|
|
71 |
sed \
|
|
72 |
-e "s/m4_include(version)//" \ |
|
73 |
-e "s/AC_INIT(armagetronad,AUTOMATIC_VERSION)/AC_INIT(@prognamebase@,$(VERSION))/" \ |
|
74 |
-e "s/ progname=.*/ progname='@prognamebase@'/" \ |
|
75 |
-e "s/ progtitle=.*/ progtitle='@progtitle@'/" \ |
|
76 |
< @srcdir@/configure.ac > $(distdir)/configure.ac |
|
1
by luke-jr
Unify tags/branches of modules released together |
77 |
|
78 |
# regenerate dependant files so they no longer reference to the file "version" which will be removed
|
|
79 |
cp @srcdir@/bootstrap.sh $(distdir) |
|
747.1.15
by Manuel Moos
Create source tarballs with tFakeVersion.h so the extended version info included in builds is correct. |
80 |
cd $(distdir); rm -f aa_config.h.in version; sh ./bootstrap.sh |
19
by z-man
Merging branch 0.2.8 from revision 4612 to 4640: |
81 |
rm -rf $(distdir)/autom4te.cache |
1
by luke-jr
Unify tags/branches of modules released together |
82 |
|
83 |
dist-hook: |
|
84 |
# copy mac files
|
|
85 |
cp -R ${srcdir}/MacOS ${distdir} |
|
86 |
||
87 |
# clear CVS
|
|
414
by z-man
Merging branch 0.2.8 from revision 6800 to 6803: |
88 |
find $(distdir) -depth -name CVS -exec rm -rf \{\} \; |
1
by luke-jr
Unify tags/branches of modules released together |
89 |
|
19
by z-man
Merging branch 0.2.8 from revision 4612 to 4640: |
90 |
# clear SVN
|
414
by z-man
Merging branch 0.2.8 from revision 6800 to 6803: |
91 |
find $(distdir) -depth -name .svn -exec rm -rf \{\} \; |
19
by z-man
Merging branch 0.2.8 from revision 4612 to 4640: |
92 |
|
1
by luke-jr
Unify tags/branches of modules released together |
93 |
# strip comments from translated files
|
94 |
cd $(distdir)/language; python ./update.py --dist |
|
95 |
# restore timestamps
|
|
96 |
cd $(distdir)/language; for f in *.txt; do test -r $$f.bak && touch -r $$f.bak $$f; done |
|
97 |
rm -f $(distdir)/language/*.bak |
|
98 |
||
99 |
# generate ChangeLog and configure.ac
|
|
19
by z-man
Merging branch 0.2.8 from revision 4612 to 4640: |
100 |
test -r $(srcdir)/version && $(MAKE) dist-hook-scm || echo "Version not from SCM, skipping version fixing." |
1
by luke-jr
Unify tags/branches of modules released together |
101 |
|
747.1.16
by Manuel Moos
Removing dead script parts. |
102 |
# fix internal version info
|
103 |
mv $(distdir)/src/tTrueVersion.h $(distdir)/src/tFakeVersion.h |
|
104 |
||
1
by luke-jr
Unify tags/branches of modules released together |
105 |
if USE_UNINSTALL
|
106 |
||
107 |
# installed location of the uninstall script
|
|
108 |
uninstall_location=$(DESTDIR)${bindir}/${uninstaller} |
|
109 |
||
110 |
# generate and install uninstallation script
|
|
111 |
install-uninstall: @srcdir@/batch/make/uninstall Makefile |
|
112 |
$(install_sh_PROGRAM) $< $(uninstall_location) |
|
113 |
rm $(uninstall_location) |
|
729
by z-man
Merging branch 0.2.8 from revision 8438 to 8691: |
114 |
ROOTDIR=$(ROOTDIR) DESTDIR=$(DESTDIR) MAKE="$(MAKE)" PREFIX="${prefix}" PROGTITLE="${progtitle}" PROGNAME="${progname}" SCRIPTDIR="${scriptdir}" sh $< $(uninstall_location) "$(external_uninstall_cmd)" |
1
by luke-jr
Unify tags/branches of modules released together |
115 |
else
|
116 |
install-uninstall: |
|
117 |
endif
|
|
118 |
||
119 |
# additional things on installation
|
|
120 |
install-exec-hook: install-uninstall |
|
121 |
# rename executable to armagetronad-VERSION and link to armagetronad
|
|
122 |
if BUILDMAIN
|
|
123 |
cd $(DESTDIR)${bindir}; mv armagetronad_main$(EXEEXT) @progname@$(executable_suffix) |
|
124 |
endif
|
|
125 |
||
126 |
# delegate to special tasks
|
|
127 |
$(masterInstallTasks) |
|
128 |
||
129 |
install-data-hook: |
|
130 |
# install systemwide files
|
|
131 |
if USE_SYSINSTALL
|
|
132 |
DESTDIR=$(DESTDIR) ROOTDIR=$(ROOTDIR) bash $(DESTDIR)${scriptdir}/sysinstall install $(prefix) |
|
133 |
endif
|
|
134 |
||
135 |
uninstall-hook: |
|
136 |
# delete executable and uninstaller
|
|
137 |
rm -f $(DESTDIR)${bindir}/@progname@$(executable_suffix) |
|
138 |
||
139 |
# delegate to special tasks
|
|
140 |
$(masterUninstallTasks) |
|
141 |
||
142 |
if USE_UNINSTALL
|
|
143 |
rm -f $(uninstall_location) |
|
144 |
endif
|
|
145 |
# rm -rf $(DESTDIR)$(aa_datadir)
|
|
146 |
||
147 |
# this has to be done first on uninstall/install. Unfortuantely.
|
|
148 |
# automake uses strict bottom-up logic here, so it is
|
|
149 |
# a special target recursively made from within src.
|
|
150 |
uninstall-first: |
|
151 |
# uninstall systemwide files
|
|
152 |
if USE_SYSINSTALL
|
|
153 |
if test -z "$(AA_FAKE_UNINSTALL)"; then DESTDIR=$(DESTDIR) ROOTDIR=$(ROOTDIR) bash $(DESTDIR)${scriptdir}/sysinstall uninstall $(prefix); fi
|
|
154 |
endif
|
|
155 |
||
156 |
install-first: |
|
157 |
# uninstall previous version (if it exists), ignoring errors
|
|
193
by z-man
Merging branch 0.2.8 from revision 5717 to 5750: |
158 |
test -n "$(uninstall_location)" && test -x "$(uninstall_location)" && "$(uninstall_location)" || true |
1
by luke-jr
Unify tags/branches of modules released together |
159 |
|
160 |
distclean-local: |
|
747.1.1
by epsy
New version labelling script, also includes --versioninfo and /help version |
161 |
rm -f uninstall.sh batch/relocate.in universal_variable* extrapaths src/tUniversalVariables.h* src/tTrueVersion.h* .changetag |
1
by luke-jr
Unify tags/branches of modules released together |
162 |
|
163 |
# remove files left over by distcheck
|
|
164 |
distcheck-clean: |
|
165 |
chmod 755 -R @progname@-$(VERSION)* |
|
166 |
rm -rf @progname@-$(VERSION)* |
|
167 |