mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[Feature] Added message when compilation starts
* Added message when compilation starts. * Added version, getting fancy. * Fixed echo -e incompatibility. * Added OS printing, moved pimp to proper pimp file. * Fixed recursive pimp.
This commit is contained in:
1
Makefile
1
Makefile
@@ -1,4 +1,5 @@
|
||||
include build/config.mak
|
||||
include build/pimp.mak
|
||||
|
||||
ifeq (${MODEL}, n0110)
|
||||
apps_list = ${EPSILON_APPS}
|
||||
|
||||
66
build/pimp.mak
Normal file
66
build/pimp.mak
Normal file
@@ -0,0 +1,66 @@
|
||||
# You gotta PIMP MY CALC
|
||||
|
||||
ifndef NO_PIMP
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m ____ \n")
|
||||
PLS_IGNORE := $(shell >&2 printf " / __ \\____ ___ ___ ____ _____ _ \n")
|
||||
PLS_IGNORE := $(shell >&2 printf " / / / / __ \`__ \\/ _ \\/ __ \`/ __ \`/ \n")
|
||||
PLS_IGNORE := $(shell >&2 printf " / /_/ / / / / / / __/ /_/ / /_/ / \n")
|
||||
PLS_IGNORE := $(shell >&2 printf " \\____/_/ /_/ /_/\\___/\\__, /\\__,_/ \n")
|
||||
PLS_IGNORE := $(shell >&2 printf " /____/ \n")
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[33m - Omega does what Epsilon't \e[0m\n")
|
||||
PLS_IGNORE := $(shell >&2 printf "\n")
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[32mBuilding O$(OMEGA_VERSION)-E$(EPSILON_VERSION)\n")
|
||||
|
||||
ifeq (${PLATFORM},device)
|
||||
DISPLAY_TARGET = Numworks $(MODEL)
|
||||
endif
|
||||
|
||||
ifeq (${PLATFORM},simulator)
|
||||
DISPLAY_TARGET = $(TARGET) simulator
|
||||
endif
|
||||
|
||||
DISPLAY_TARGET ?= "Undefined"
|
||||
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[32m Targetting $(DISPLAY_TARGET)\n")
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
DISPLAY_OS = Windows
|
||||
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64)
|
||||
DISPLAY_OS += amd64
|
||||
else
|
||||
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
|
||||
DISPLAY_OS += x86
|
||||
endif
|
||||
ifeq ($(PROCESSOR_ARCHITECTURE),x86)
|
||||
DISPLAY_OS += x86
|
||||
endif
|
||||
endif
|
||||
else
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
DISPLAY_OS = Linux
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
DISPLAY_OS = Max OSX
|
||||
endif
|
||||
UNAME_P := $(shell uname -m)
|
||||
ifeq ($(UNAME_P),x86_64)
|
||||
DISPLAY_OS += amd64
|
||||
endif
|
||||
ifneq ($(filter %86,$(UNAME_P)),)
|
||||
DISPLAY_OS += x86
|
||||
endif
|
||||
ifneq ($(filter arm%,$(UNAME_P)),)
|
||||
DISPLAY_OS += arm
|
||||
endif
|
||||
endif
|
||||
|
||||
DISPLAY_OS ?= "Unknown"
|
||||
|
||||
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[32m Building on $(DISPLAY_OS)\n")
|
||||
|
||||
PLS_IGNORE := $(shell >&2 printf "\e[0m\e[39m\n")
|
||||
endif
|
||||
|
||||
MAKE += NO_PIMP=1
|
||||
Reference in New Issue
Block a user