Skip to content

Instantly share code, notes, and snippets.

@caspervonb
Last active July 23, 2018 06:47
Show Gist options
  • Save caspervonb/9d0bc0c4dc43ef7364f0 to your computer and use it in GitHub Desktop.
Save caspervonb/9d0bc0c4dc43ef7364f0 to your computer and use it in GitHub Desktop.
6o5-makefile guide
SRC = $(wildcard src/*.js)
LIB = $(SRC:src/%.js=lib/%.js)
lib: $(LIB)
lib/%.js: src/%.js
mkdir -p $(@D)
6to5 $< -o $@
clean:
rm $(LIB)
@caspervonb
Copy link
Author

Build
make lib

Continious build
watch -n 0.25 make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment