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:
parent
b28e003945
commit
120e947d6e
17
GNUmakefile
Normal file
17
GNUmakefile
Normal 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
|
39
Makefile
39
Makefile
@ -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
|
Reference in New Issue
Block a user