github.com/confluentinc/confluent-kafka-go@v1.9.2/mk/Makefile (about)

     1  # Convenience helper Makefile for simplifying tasks in all sub-dirs
     2  # of this git repo.
     3  #
     4  # Usage (from top-level dir):
     5  #   make -f mk/Makefile "<command> <args..>"
     6  #
     7  # E.g., to run 'go vet' on all Go code:
     8  #   make -f mk/Makefile "go vet"
     9  #
    10  #
    11  #
    12  
    13  DIRS?=$(shell find . -xdev -type f -name '*.go' -exec dirname {} \; | sort | uniq)
    14  
    15  docs: generr
    16  	mk/doc-gen.py kafka > kafka/api.html && \
    17  	mk/doc-gen.py schemaregistry > schemaregistry/api.html
    18  
    19  generr:
    20  	(cd kafka/go_rdkafka_generr && go install)
    21  	(cd kafka && go generate ./...)
    22  
    23  %:
    24  	@(for d in $(DIRS) ; do (cd "$$d" && $@) ; done)