Skip to content

Commit f06dbbb

Browse files
authored
Merge pull request #507 from uyjulian/buildsystem_improvements_240117
Buildsystem improvements 240117
2 parents e2f5d4a + b0a0aee commit f06dbbb

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ifeq (x$(PS2SDKSRC), x)
1212
export PS2SDKSRC=$(shell pwd)
1313
endif
1414

15-
SUBDIRS = tools iop ee common samples
15+
SUBDIRS = tools common iop ee samples
1616

1717
all: build
1818
@$(PRINTF) '.\n.PS2SDK Built.\n.\n'
@@ -34,6 +34,10 @@ $(subdir_clean): dummy
3434
$(subdir_release): dummy
3535
$(MAKEREC) $(patsubst release-%,%,$@) release
3636

37+
# Directory-level parallelism has been disabled due to issues with
38+
# multiple Make instances running inside a directory at once
39+
# and causing output file corruption
40+
.NOTPARALLEL: $(subdir_list) $(subdir_clean) $(subdir_release)
3741

3842
build: $(subdir_list) | env_build_check download_dependencies
3943

Rules.make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ $(subdir_clean): dummy
2424
$(subdir_release): dummy
2525
$(MAKE) -C $(patsubst release-%,%,$@) release
2626

27+
# Directory-level parallelism has been disabled due to issues with
28+
# multiple Make instances running inside a directory at once
29+
# and causing output file corruption
30+
.NOTPARALLEL: $(subdir_list) $(subdir_clean) $(subdir_release)
2731
endif
2832

2933
all: $(subdir_list)

common/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Licenced under Academic Free License version 2.0
77
# Review ps2sdk README & LICENSE files for further details.
88

9-
SUBDIRS = sbus
9+
SUBDIRS = external_deps sbus
1010

1111
include $(PS2SDKSRC)/Defs.make
1212
include $(PS2SDKSRC)/Rules.make

common/external_deps/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ clean:
1111
@$(PRINTF) 'Cleaning lwip.\n'
1212
rm -rf $(LWIP) $(LWIP)_inprogress
1313

14+
release:
15+
@cd .
16+
1417
include $(PS2SDKSRC)/Defs.make

tools/Rules.release

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ release-bin:
2424
@if test $(TOOLS_BIN) ; then \
2525
$(PRINTF) 'Installing %s to %s\n' $(TOOLS_BIN) $(PS2SDK) ; \
2626
cp -f $(TOOLS_BIN) $(RELEASE_TOOLS_DIRS) ; \
27+
for file in $(TOOLS_BIN_ALTNAMES); do \
28+
ln -sf $$(basename $(TOOLS_BIN)) $(RELEASE_TOOLS_DIRS)/$$file; \
29+
done; \
2730
fi;
2831

2932
release: release-dirs release-bin

0 commit comments

Comments
 (0)