Skip to content

Commit c3a08b0

Browse files
committed
Avoid referring to parent directories in makefiles
All such references are now done in terms of top_builddir or top_srcdir. Related to exult#48
1 parent dae090a commit c3a08b0

File tree

15 files changed

+75
-62
lines changed

15 files changed

+75
-62
lines changed

android/lib/src/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
AM_CPPFLAGS = -I$(srcdir)/../include -I$(top_srcdir) -I$(top_srcdir)/headers -I$(top_srcdir)/conf $(SDL_CFLAGS) $(INCDIRS) \
1+
AM_CPPFLAGS = -I$(top_srcdir)/android/lib/include -I$(top_srcdir) \
2+
-I$(top_srcdir)/headers -I$(top_srcdir)/conf $(SDL_CFLAGS) $(INCDIRS) \
23
$(WINDOWING_SYSTEM) $(DEBUG_LEVEL) $(OPT_LEVEL) $(WARNINGS) $(CPPFLAGS)
34

45
noinst_LTLIBRARIES = libandroid.la

conf/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ confregress_SOURCES = \
1818

1919
confregress_LDADD = \
2020
libconf.la \
21-
../files/libu7file.la \
21+
$(top_builddir)/files/libu7file.la \
2222
$(SYSLIBS)
2323

2424
EXTRA_DIST = \

content/bg/Makefile.am

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# Instead, run makefile_builder.sh from the parent directory.
33

44
# Base of the exult source
5-
SRC=../..
6-
7-
UCCDIR=$(SRC)/usecode/compiler
5+
UCCDIR=$(top_srcdir)/usecode/compiler
86
UCC=$(UCCDIR)/ucc
97

10-
EXPACKDIR=$(SRC)/tools
8+
EXPACKDIR=$(top_srcdir)/tools
119
EXPACK=$(EXPACKDIR)/expack
1210

1311
USECODE_OBJECTS = \

content/bgkeyring/Makefile.am

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# Instead, run makefile_builder.sh from the parent directory.
33

44
# Base of the exult source
5-
SRC=../..
6-
7-
UCCDIR=$(SRC)/usecode/compiler
5+
UCCDIR=$(top_srcdir)/usecode/compiler
86
UCC=$(UCCDIR)/ucc
97

10-
EXPACKDIR=$(SRC)/tools
8+
EXPACKDIR=$(top_srcdir)/tools
119
EXPACK=$(EXPACKDIR)/expack
1210

1311
USECODE_OBJECTS = \

content/islefaq/Makefile.am

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22
# Instead, run makefile_builder.sh from the parent directory.
33

44
# Base of the exult source
5-
SRC=../..
6-
7-
UCCDIR=$(SRC)/usecode/compiler
5+
UCCDIR=$(top_srcdir)/usecode/compiler
86
UCC=$(UCCDIR)/ucc
97

10-
EXPACKDIR=$(SRC)/tools
8+
EXPACKDIR=$(top_srcdir)/tools
119
EXPACK=$(EXPACKDIR)/expack
1210

1311
USECODE_OBJECTS = \
1412
src/usecode.uc
1513

1614
FACES_VGA_OBJECTS = \
1715
src/graphics/faces.in \
18-
src/graphics/faces/dominus.shp
16+
src/graphics/faces/colourless.shp \
17+
src/graphics/faces/dominus.shp \
18+
src/graphics/faces/drcode.shp \
19+
src/graphics/faces/fingolfin.shp \
20+
src/graphics/faces/wjp.shp
1921

2022
SHAPES_VGA_OBJECTS = \
2123
src/graphics/shapes.in \
@@ -34,14 +36,19 @@ nodist_islefaqpatch_DATA = \
3436
patch/shapes.vga
3537

3638
islefaqpatch_DATA = \
39+
patch/equip.dat \
3740
patch/initgame.dat \
41+
patch/minimaps.vga \
42+
patch/occlude.dat \
3843
patch/ready.dat \
3944
patch/shpdims.dat \
45+
patch/textmsg.txt \
4046
patch/tfa.dat \
4147
patch/u7ifix0d \
4248
patch/u7ifix64 \
4349
patch/u7ifix65 \
4450
patch/u7map \
51+
patch/wgtvol.dat \
4552
patch/wihh.dat
4653

4754
EXTRA_DIST = \

content/islefaq/Makefile.mingw

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ USECODE_OBJECTS = \
2323

2424
FACES_VGA_OBJECTS = \
2525
src/graphics/faces.in \
26-
src/graphics/faces/dominus.shp
26+
src/graphics/faces/colourless.shp \
27+
src/graphics/faces/dominus.shp \
28+
src/graphics/faces/drcode.shp \
29+
src/graphics/faces/fingolfin.shp \
30+
src/graphics/faces/wjp.shp
2731

2832
SHAPES_VGA_OBJECTS = \
2933
src/graphics/shapes.in \
@@ -45,14 +49,19 @@ install: all
4549
cp patch/usecode $(islefaqdir)/islefaq/patch/usecode
4650
cp patch/faces.vga $(islefaqdir)/islefaq/patch/faces.vga
4751
cp patch/shapes.vga $(islefaqdir)/islefaq/patch/shapes.vga
52+
cp patch/equip.dat $(islefaqdir)/islefaq/patch/equip.dat
4853
cp patch/initgame.dat $(islefaqdir)/islefaq/patch/initgame.dat
54+
cp patch/minimaps.vga $(islefaqdir)/islefaq/patch/minimaps.vga
55+
cp patch/occlude.dat $(islefaqdir)/islefaq/patch/occlude.dat
4956
cp patch/ready.dat $(islefaqdir)/islefaq/patch/ready.dat
5057
cp patch/shpdims.dat $(islefaqdir)/islefaq/patch/shpdims.dat
58+
cp patch/textmsg.txt $(islefaqdir)/islefaq/patch/textmsg.txt
5159
cp patch/tfa.dat $(islefaqdir)/islefaq/patch/tfa.dat
5260
cp patch/u7ifix0d $(islefaqdir)/islefaq/patch/u7ifix0d
5361
cp patch/u7ifix64 $(islefaqdir)/islefaq/patch/u7ifix64
5462
cp patch/u7ifix65 $(islefaqdir)/islefaq/patch/u7ifix65
5563
cp patch/u7map $(islefaqdir)/islefaq/patch/u7map
64+
cp patch/wgtvol.dat $(islefaqdir)/islefaq/patch/wgtvol.dat
5665
cp patch/wihh.dat $(islefaqdir)/islefaq/patch/wihh.dat
5766
cp README $(islefaqdir)/islefaq/Readme.txt
5867
cp ./../../COPYING $(islefaqdir)/islefaq/License.txt

content/makefile_builder.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ find . -mindepth 2 -iname "*.cfg" | while read -r cfgfile; do
7373
# Instead, run makefile_builder.sh from the parent directory.
7474
7575
# Base of the exult source
76-
SRC=../..
77-
78-
UCCDIR=\$(SRC)/usecode/compiler
76+
UCCDIR=\$(top_srcdir)/usecode/compiler
7977
UCC=\$(UCCDIR)/ucc
8078
81-
EXPACKDIR=\$(SRC)/tools
79+
EXPACKDIR=\$(top_srcdir)/tools
8280
EXPACK=\$(EXPACKDIR)/expack
8381
" >> "$modmakefile_am"
8482

content/si/Makefile.am

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# Instead, run makefile_builder.sh from the parent directory.
33

44
# Base of the exult source
5-
SRC=../..
6-
7-
UCCDIR=$(SRC)/usecode/compiler
5+
UCCDIR=$(top_srcdir)/usecode/compiler
86
UCC=$(UCCDIR)/ucc
97

10-
EXPACKDIR=$(SRC)/tools
8+
EXPACKDIR=$(top_srcdir)/tools
119
EXPACK=$(EXPACKDIR)/expack
1210

1311
USECODE_OBJECTS = \

content/sifixes/Makefile.am

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# Instead, run makefile_builder.sh from the parent directory.
33

44
# Base of the exult source
5-
SRC=../..
6-
7-
UCCDIR=$(SRC)/usecode/compiler
5+
UCCDIR=$(top_srcdir)/usecode/compiler
86
UCC=$(UCCDIR)/ucc
97

10-
EXPACKDIR=$(SRC)/tools
8+
EXPACKDIR=$(top_srcdir)/tools
119
EXPACK=$(EXPACKDIR)/expack
1210

1311
USECODE_OBJECTS = \

data/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ EXTRA_DIST = flx.in $(EXULT_FLX_OBJECTS) $(EXULT_BG_FLX_OBJECTS) \
222222
if CROSS_COMPILING
223223
expack = $(EXPACK)
224224
else
225-
expack = ../tools/expack$(EXEEXT)
225+
expack = $(top_builddir)/tools/expack$(EXEEXT)
226226
endif
227227

228-
../tools/expack$(EXEEXT):
229-
+(cd ../tools;$(MAKE) expack$(EXEEXT))
228+
$(top_srcdir)/tools/expack$(EXEEXT):
229+
+(cd $(top_srcdir)/tools;$(MAKE) expack$(EXEEXT))
230230

231231
bg/bg_paperdol.vga: $(expack) $(EXULT_BG_PAPERDOL_VGA_OBJECTS)
232232
$(expack) -i $(srcdir)/bg/bg_paperdol.in

0 commit comments

Comments
 (0)