Skip to content

Commit e2b9ff2

Browse files
committed
Add GNU Make 4.0+ version check to Makefile
- Require GNU Make 4.0 or later for $(file ...) function support - Display helpful error message on macOS directing users to use 'gmake' - Fixes issue where VERSION_STRING was empty with old make 3.81 - Ensures version numbers appear in dist filenames (e.g., fujinet-lib-apple2-4.8.0.zip) Users on macOS should use 'gmake' instead of 'make' for proper version handling.
1 parent 4796185 commit e2b9ff2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Set the TARGETS and PROGRAM values as required.
44
# See makefiles/build.mk for details on directory structure for src files and how to add custom extensions to the build.
55

6+
# Require GNU Make 4.0 or later for $(file ...) function
7+
ifeq ($(filter 4.%,$(MAKE_VERSION)),)
8+
$(error This Makefile requires GNU Make 4.0 or later. You are using $(MAKE_VERSION). Please use 'gmake' instead of 'make' on macOS.)
9+
endif
10+
611
TARGETS = apple2 apple2enh atari c64 coco
712
PROGRAM := fujinet.lib
813

0 commit comments

Comments
 (0)