Skip to content

Instantly share code, notes, and snippets.

@tomelam
Forked from ecarter/Makefile
Created October 1, 2021 12:06
Show Gist options
  • Save tomelam/04d34b1468c3cfccb340dc1248cb2391 to your computer and use it in GitHub Desktop.
Save tomelam/04d34b1468c3cfccb340dc1248cb2391 to your computer and use it in GitHub Desktop.
Makefile - coffee/jade/stylus
# Output Directory
OUTPUT = ../lib
all: css html js
css:
@echo "stylus => css"
@stylus \
-c \
-u nib \
< style.styl \
> $(OUTPUT)/style.css
html:
@echo "jade => html"
@jade \
-o "{}" \
< index.jade \
> index.html
js:
@echo "coffee => js"
@coffee -bco \
$(OUTPUT) script.coffee
watch:
watch --interval=1 $(MAKE) all
.PHONY: all css html js watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment