Rename Makefiles to GNUmakefiles.

GNU make is a requirement to build Magicka: make
this explicit with the naming of the files.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
This commit is contained in:
Dan Cross 2018-10-09 15:55:09 +00:00 committed by Andrew Pamment
parent b28e003945
commit 120e947d6e
14 changed files with 17 additions and 39 deletions

17
GNUmakefile Normal file
View File

@ -0,0 +1,17 @@
OS := $(shell uname -s | tr '[A-Z]' '[a-z]' | sed 's/darwin/osx/')
all: magicka
.PHONY: magicka www clean cleanwww
magicka:
cd src && $(MAKE) -f GNUmakefile.$(OS)
www:
cd src && $(MAKE) -f GNUmakefile.$(OS).WWW
clean:
cd src && $(MAKE) -f GNUmakefile.$(OS) clean
cleanwww:
cd src && $(MAKE) -f GNUmakefile.$(OS).WWW clean

View File

@ -1,39 +0,0 @@
OS := $(shell uname -s)
ifeq ($(OS), DragonFly)
MAKEFILE=Makefile.freebsd
endif
ifeq ($(OS), FreeBSD)
MAKEFILE=Makefile.freebsd
endif
ifeq ($(OS), NetBSD)
MAKEFILE=Makefile.netbsd
endif
ifeq ($(OS), Linux)
MAKEFILE=Makefile.linux
endif
ifeq ($(OS), Darwin)
MAKEFILE=Makefile.osx
endif
ifeq ($(OS), SunOS)
MAKEFILE=Makefile.sunos
endif
ifeq ($(OS), OpenBSD)
MAKEFILE=Makefile.openbsd
endif
all: magicka
.PHONY: magicka www clean cleanwww
magicka:
cd src && $(MAKE) -f $(MAKEFILE)
www:
cd src && $(MAKE) -f $(MAKEFILE).WWW
clean:
cd src && $(MAKE) -f $(MAKEFILE) clean
cleanwww:
cd src && $(MAKE) -f $(MAKEFILE).WWW clean