Skip to content

Commit

Permalink
avoid copying .git dirs when preparing rel- targets
Browse files Browse the repository at this point in the history
Specifically, those in eleveldb submodules

# Conflicts:
#	Makefile
  • Loading branch information
hmmr authored and Andrei Zavada committed Dec 29, 2021
1 parent 73f12e9 commit 3db7582
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,21 @@ test : testclean eunit test-deps
## Release targets
##
rel: compile
$(REBAR) as rel release
cp -a _build/rel/rel/riak rel/
@$(REBAR) as rel release
# freebsd tar won't write to stdout, so
@tar -c -f rel.tar --exclude '*/.git/*' -C _build/rel/rel riak && tar -x -f rel.tar -C rel && rm rel.tar

rel-rpm: compile
$(REBAR) as rpm release
cp -a _build/rpm/rel/riak rel/
@$(REBAR) as rpm release
@tar --exclude='*/.git/*' -c -C _build/rpm/rel riak | tar -x -C rel

rel-deb: compile
$(REBAR) as deb release
cp -a _build/deb/rel/riak rel/
@$(REBAR) as deb release
@tar --exclude='*/.git/*' -c -C _build/deb/rel riak | tar -x -C rel

relclean:
rm -rf $(REL_DIR)
rm -rf rel/riak
@rm -rf $(REL_DIR)
@rm -rf rel/riak rel/.libs rel/.deps

##
## Developer targets
Expand Down
2 changes: 2 additions & 0 deletions rel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.deps/
.libs/

0 comments on commit 3db7582

Please sign in to comment.