Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Last active December 16, 2015 12:49
Show Gist options
  • Save emersonmx/5437822 to your computer and use it in GitHub Desktop.
Save emersonmx/5437822 to your computer and use it in GitHub Desktop.
Makefile para projetos Javascript
JSCOMPRESS=jsmin
CONCAT=cat
PROJECT_NAME=jsproject
SOURCES=script1.js script2.js script3.js, scriptN.js
all: $(SOURCES)
$(CONCAT) $^ > $(PROJECT_NAME).js
$(JSCOMPRESS) < $(PROJECT_NAME).js > $(PROJECT_NAME)-min.js
.PHONY: clean
clean:
rm -f $(PROJECT_NAME).js
rm -f $(PROJECT_NAME)-min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment