This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
php-frs/Makefile

24 lines
357 B
Makefile

#export PATH := $(PWD)/vendor/bin:$(PATH)
CC=$(PWD)/vendor/bin/coffee
SCRIPT_DIR=js
COFFEE_FILES := $(wildcard $(SCRIPT_DIR)/*.coffee)
JS_FILES=$(COFFEE_FILES:$(SCRIPT_DIR)/%.coffee=$(SCRIPT_DIR)/%.js)
all: coffee
coffee: $(JS_FILES)
$(SCRIPT_DIR)/%.js: $(SCRIPT_DIR)/%.coffee
"$(CC)" -c $<
# Cleanup
.PHONY: clean
clean:
-rm $(SCRIPT_DIR)/*.js