Skip to content

Commit

Permalink
build: make protos must be the default makefile target
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido authored and poiana committed Dec 4, 2019
1 parent 8bd88fc commit 3a4b87e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 9,9 @@ PROTO_SHAS := a1f427c114b945d0880b55058862b74015d036aa722985ca6e5474ab4ed19f69 4
PROTO_DIRS := $(dir ${PROTOS})
PROTO_DIRS_INCLUDES := $(patsubst %/, -I %, ${PROTO_DIRS})

.PHONY: protos
protos: ${PROTOS}

# $(1): the proto path
# $(2): the proto URL
# $(3): the proto SHA256
Expand All @@ -26,9 29,6 @@ $(foreach PROTO,$(PROTOS),\
$(eval PROTO_SHAS := $(wordlist 2,$(words $(PROTO_SHAS)),$(PROTO_SHAS)))\
)

.PHONY: protos
protos: ${PROTOS}

.PHONY: clean
clean: ${PROTO_DIRS}
@rm -rf $^

0 comments on commit 3a4b87e

Please sign in to comment.