Skip to content

Instantly share code, notes, and snippets.

@clayrisser
Created January 20, 2020 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayrisser/a1dec862bba4b6032d9cb1a3bfe16edd to your computer and use it in GitHub Desktop.
Save clayrisser/a1dec862bba4b6032d9cb1a3bfe16edd to your computer and use it in GitHub Desktop.
Universal Makefiles
PLATFORM := $(shell node -e "process.stdout.write(process.platform)")
ifeq ($(PLATFORM), win32)
SHELL = cmd
endif
.EXPORT_ALL_VARIABLES:
all:
@echo platform: $(PLATFORM)
@echo shell: $(SHELL)
@echo node: $(shell node --version)
@echo npm: $(shell npm --version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment