Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (31 sloc) 937 Bytes
SRC = ${npm_package_directories_src}
LIB = ${npm_package_directories_lib}
VERSION = v${npm_package_version}
JQUERY_SUMODULE_DIR = lib/jquery
JQUERY = $(JQUERY_SUMODULE_DIR)/dist/jquery.js
NQUERY = ${npm_package_main}
M4_NQUERY = $(basename $(NQUERY)).m4$(suffix $(NQUERY))
.PHONY: build
build: $(NQUERY)
.PHONY: prepublish
prepublish: build mostlyclean
$(NQUERY): $(JQUERY) $(M4_NQUERY)
m4 --prefix-builtins --include $(dir $(JQUERY)) $(M4_NQUERY) > $@
$(JQUERY): $(JQUERY_SUMODULE_DIR)
cd $< && npm install && ./node_modules/.bin/grunt --force && cd $(CURDIR)
$(JQUERY_SUMODULE_DIR): FORCE
git submodule update --init --recursive
$(LIB)/%.js: $(SRC)/%.coffee
coffee --compile --print $< > $@
#.PHONY: test
#test: build
.PHONY: mostlyclean
mostlyclean: FORCE
rm -Rf $(JQUERY_SUMODULE_DIR) $(M4_NQUERY)
.PHONY: clean
clean: mostlyclean
rm -Rf $(NQUERY)
FORCE:
.PHONY: debug
debug:
@echo "debug"
Something went wrong with that request. Please try again.