diff options
Diffstat (limited to 'erlang.mk')
-rw-r--r-- | erlang.mk | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -19,6 +19,8 @@ PROJECT ?= $(notdir $(CURDIR)) # Packages database file. PKG_FILE ?= $(CURDIR)/.erlang.mk.packages.v1 +export PKG_FILE + PKG_FILE_URL ?= https://raw.github.com/extend/erlang.mk/master/packages.v1.txt define get_pkg_file @@ -102,9 +104,11 @@ define compile_dtl init:stop()' endef -ebin/$(PROJECT).app: src/*.erl $(wildcard src/*.core) \ - $(wildcard src/*.xrl) $(wildcard src/*.yrl) \ - $(wildcard templates/*.dtl) +ebin/$(PROJECT).app: $(shell find src -name \*.erl) \ + $(shell find src -name \*.core) \ + $(shell find src -name \*.xrl) \ + $(shell find src -name \*.yrl) \ + $(shell find templates -name \*.dtl 2>/dev/null) @mkdir -p ebin/ $(if $(strip $(filter %.erl %.core,$?)), \ $(call compile_erl,$(filter %.erl %.core,$?))) |