diff options
author | Jean-Sébastien Pédron <[email protected]> | 2019-12-09 17:40:29 +0100 |
---|---|---|
committer | Jean-Sébastien Pédron <[email protected]> | 2019-12-09 17:40:29 +0100 |
commit | 74f1fbf76a18d6c4b72de1ed2d23b80ef801b16e (patch) | |
tree | 10991b4682fb572308cef74ae5f303a7d627601c | |
parent | 4508aa040df840d7149d703bcaefe2cb23ab3ed9 (diff) | |
download | erlang.mk-74f1fbf76a18d6c4b72de1ed2d23b80ef801b16e.tar.gz erlang.mk-74f1fbf76a18d6c4b72de1ed2d23b80ef801b16e.tar.bz2 erlang.mk-74f1fbf76a18d6c4b72de1ed2d23b80ef801b16e.zip |
plugins/c_src.mk: Deduce directory to create from $@
... instead of hard-coding `priv`.
-rw-r--r-- | plugins/c_src.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk index 3a8460d..6c957d7 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -98,7 +98,7 @@ app:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE) test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE) $(C_SRC_OUTPUT_FILE): $(OBJECTS) - $(verbose) mkdir -p priv/ + $(verbose) mkdir -p $(dir $@) $(link_verbose) $(CC) $(OBJECTS) \ $(LDFLAGS) $(if $(filter $(C_SRC_TYPE),shared),-shared) $(LDLIBS) \ -o $(C_SRC_OUTPUT_FILE) |