Skip to content

Commit

Permalink
Include Makefile in hex.pm packages
Browse files Browse the repository at this point in the history
And only check xmpp.doap when requested (it is also not included in
hex.pm package)
  • Loading branch information
nosnilmot authored and badlop committed Nov 6, 2024
1 parent fd562a1 commit 24627c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ clean:
xref: all
$(REBAR) xref

ifeq ($(MAKECMDGOALS),doap)
xep_files := $(wildcard src/xep*.erl)
xep_numbers := $(foreach i,$(xep_files),$(shell echo $(i) | sed 's|.*p\([0-9]*\).*|\1|g' | sort -u))
xeps_missing := $(foreach i,$(xep_numbers),$(shell grep -q $(i) xmpp.doap || echo $(i)))
xeps_missing2 := $(foreach i,$(xeps_missing),$(strip $(i)))
endif

doap:
@[ -z "$(xeps_missing2)" ] \
Expand Down Expand Up @@ -103,4 +105,4 @@ deps/fast_xml/ebin/fxml_gen.beam:
ebin/xdata_codec.beam:
$(REBAR) get-deps compile

.PHONY: clean src all spec xdata dialyzer erlang_plt deps_plt xmpp_plt
.PHONY: clean src all spec xdata dialyzer erlang_plt deps_plt xmpp_plt doap
2 changes: 1 addition & 1 deletion src/xmpp.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{env, []},

%% hex.pm packaging:
{files, ["src/", "specs/", "asn1/", "include/", "c_src/jid.c", "c_src/xmpp_uri.c", "c_src/xmpp_lang.c", "rebar.config", "rebar.config.script", "README.md", "LICENSE.txt"]},
{files, ["src/", "specs/", "asn1/", "include/", "c_src/jid.c", "c_src/xmpp_uri.c", "c_src/xmpp_lang.c", "rebar.config", "rebar.config.script", "README.md", "LICENSE.txt", "Makefile"]},
{exclude_files, ["src/XmppAddr.erl", "src/XmppAddr.asn1db", "include/XmppAddr.hrl"]},
{licenses, ["Apache 2.0"]},
{links, [{"Github", "https://github.com/processone/xmpp"}]}]}.
Expand Down

0 comments on commit 24627c4

Please sign in to comment.