Last active
July 23, 2018 06:47
-
-
Save caspervonb/9d0bc0c4dc43ef7364f0 to your computer and use it in GitHub Desktop.
6o5-makefile guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRC = $(wildcard src/*.js) | |
LIB = $(SRC:src/%.js=lib/%.js) | |
lib: $(LIB) | |
lib/%.js: src/%.js | |
mkdir -p $(@D) | |
6to5 $< -o $@ | |
clean: | |
rm $(LIB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build
make lib
Continious build
watch -n 0.25 make