aboutsummaryrefslogtreecommitdiffstats
path: root/core/erlc.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-04 17:00:47 +0200
committerLoïc Hoguin <[email protected]>2015-09-04 17:00:47 +0200
commit328716ac12ea32247f647ded9ea548fc4f214574 (patch)
treee617e3713f4ebc80373e6644652ca1c62b31a679 /core/erlc.mk
parentc6fd8de9e51e1e3af6d059148dbafd044a66dcbc (diff)
downloaderlang.mk-328716ac12ea32247f647ded9ea548fc4f214574.tar.gz
erlang.mk-328716ac12ea32247f647ded9ea548fc4f214574.tar.bz2
erlang.mk-328716ac12ea32247f647ded9ea548fc4f214574.zip
Don't recompile everything when one mib file changes
Fixes a bug detected with the test introduced in the previous commit.
Diffstat (limited to 'core/erlc.mk')
-rw-r--r--core/erlc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index 796ad85..9202d64 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -106,10 +106,10 @@ endif
ifneq ($(wildcard mibs/),)
MIB_FILES = $(sort $(call core_find,mibs/,*.mib))
-$(PROJECT).d:: $(MIB_FILES)
+$(PROJECT).d:: $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES)
$(verbose) mkdir -p include/ priv/mibs/
- $(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES)
- $(mib_verbose) erlc -o include/ -- priv/mibs/*.bin
+ $(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $?
+ $(mib_verbose) erlc -o include/ -- $(addprefix priv/mibs/,$(patsubst %.mib,%.bin,$(notdir $?)))
endif
# Leex and Yecc files.