aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/c_src.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2015-11-18 19:02:28 +0100
committerJean-Sébastien Pédron <[email protected]>2015-11-19 17:42:41 +0100
commitd8678a9ff1280c213acab750bc55696282f90400 (patch)
treebf494626487178b10be4e5d4bd9cbac7093baf9a /plugins/c_src.mk
parent5ebdaa80c8b6f0e2c0431a1000b50fee87a62fb4 (diff)
downloaderlang.mk-d8678a9ff1280c213acab750bc55696282f90400.tar.gz
erlang.mk-d8678a9ff1280c213acab750bc55696282f90400.tar.bz2
erlang.mk-d8678a9ff1280c213acab750bc55696282f90400.zip
Do not export templates as environment variables
We can write the file using the Makefile variables without going through environment variables.
Diffstat (limited to 'plugins/c_src.mk')
-rw-r--r--plugins/c_src.mk4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk
index 5cfdeef..e5d6e51 100644
--- a/plugins/c_src.mk
+++ b/plugins/c_src.mk
@@ -192,10 +192,6 @@ hello(_) ->
erlang:nif_error({not_loaded, ?MODULE}).
endef
-$(foreach template,bs_c_nif bs_erl_nif, \
- $(eval _$(template) = $$(subst $$(tab),$$(WS),$$($(template)))) \
- $(eval export _$(template)))
-
new-nif:
ifneq ($(wildcard $(C_SRC_DIR)/$n.c),)
$(error Error: $(C_SRC_DIR)/$n.c already exists)