pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/34841?usp=email )

Change subject: Makefile: run 'rebar3 clean' upon make clean
......................................................................

Makefile: run 'rebar3 clean' upon make clean

Otherwise the diameter files generated during compile in include/ and
src/ are not removed.

Change-Id: I771860f965499bb754c13385819845ef23f33553
---
M Makefile
1 file changed, 20 insertions(+), 0 deletions(-)

Approvals:
  lynxis lazus: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  pespin: Looks good to me, approved
  osmith: Looks good to me, but someone else must approve




diff --git a/Makefile b/Makefile
index b2fe66f..0470458 100644
--- a/Makefile
+++ b/Makefile
@@ -14,4 +14,12 @@
        rebar3 eunit

 clean:
+# Avoid running rebar3 clean if _build doesn't exist, since it would try
+# to fetch deps from the Internet and that may not be avaialble when in
+# OBS build.
+ifneq ("$(wildcard _build/.*)", "")
+       rebar3 clean
        rm -rf _build/
+else
+       rm -f src/diameter_*.erl
+endif

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/34841?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: erlang/osmo-epdg
Gerrit-Branch: master
Gerrit-Change-Id: I771860f965499bb754c13385819845ef23f33553
Gerrit-Change-Number: 34841
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to