diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..24833bc --- /dev/null +++ b/GNUmakefile @@ -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 diff --git a/Makefile b/Makefile deleted file mode 100644 index a314020..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/src/Makefile.freebsd b/src/GNUmakefile.freebsd similarity index 100% rename from src/Makefile.freebsd rename to src/GNUmakefile.freebsd diff --git a/src/Makefile.freebsd.WWW b/src/GNUmakefile.freebsd.WWW similarity index 100% rename from src/Makefile.freebsd.WWW rename to src/GNUmakefile.freebsd.WWW diff --git a/src/Makefile.linux b/src/GNUmakefile.linux similarity index 100% rename from src/Makefile.linux rename to src/GNUmakefile.linux diff --git a/src/Makefile.linux.WWW b/src/GNUmakefile.linux.WWW similarity index 100% rename from src/Makefile.linux.WWW rename to src/GNUmakefile.linux.WWW diff --git a/src/Makefile.netbsd b/src/GNUmakefile.netbsd similarity index 100% rename from src/Makefile.netbsd rename to src/GNUmakefile.netbsd diff --git a/src/Makefile.netbsd.WWW b/src/GNUmakefile.netbsd.WWW similarity index 100% rename from src/Makefile.netbsd.WWW rename to src/GNUmakefile.netbsd.WWW diff --git a/src/Makefile.openbsd b/src/GNUmakefile.openbsd similarity index 100% rename from src/Makefile.openbsd rename to src/GNUmakefile.openbsd diff --git a/src/Makefile.openbsd.WWW b/src/GNUmakefile.openbsd.WWW similarity index 100% rename from src/Makefile.openbsd.WWW rename to src/GNUmakefile.openbsd.WWW diff --git a/src/Makefile.osx b/src/GNUmakefile.osx similarity index 100% rename from src/Makefile.osx rename to src/GNUmakefile.osx diff --git a/src/Makefile.osx.WWW b/src/GNUmakefile.osx.WWW similarity index 100% rename from src/Makefile.osx.WWW rename to src/GNUmakefile.osx.WWW diff --git a/src/Makefile.sunos b/src/GNUmakefile.sunos similarity index 100% rename from src/Makefile.sunos rename to src/GNUmakefile.sunos diff --git a/src/Makefile.sunos.WWW b/src/GNUmakefile.sunos.WWW similarity index 100% rename from src/Makefile.sunos.WWW rename to src/GNUmakefile.sunos.WWW