github.com/imran-kn/cilium-fork@v1.6.9/contrib/packaging/deb/Makefile (about)

     1  include ../../../Makefile.defs
     2  
     3  BUILDDIR := "$(CURDIR)/cilium-$(VERSION)"
     4  BASEDIR := "$(CURDIR)/../../../"
     5  BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
     6  
     7  build: clean
     8  
     9  	mkdir -p output
    10  	(cd $(BASEDIR) && git bundle create $(CURDIR)/version_$(VERSION) $(BRANCH) --tags)
    11  	(cd $(CURDIR) && git clone $(CURDIR)/version_$(VERSION) cilium -b $(BRANCH))
    12  	docker build -t cilium:cilium-bin-deb-$(VERSION) $(CURDIR)
    13  	docker run --rm -v $(CURDIR)/output:/output cilium:cilium-bin-deb-$(VERSION)
    14  
    15  clean:
    16  	@$(ECHO_CLEAN)
    17  	$(QUIET)rm -rf cilium output version_*
    18  
    19  release:
    20  	cd $(BASEDIR)
    21  	ln -sf $(CURDIR)/debian $(BASEDIR)/debian
    22  	gbp dch --spawn-editor=never --git-author --upstream-tag="v.%(version)s" --ignore-branch \
    23          --debian-tag="v.%(version)s" -N "$(VERSION)" --since 1bfb6303f6fba25c4d22fbe4b7c35450055296b6
    24  	git add $(CURDIR)/debian/changelog
    25  
    26  .PHONY: force build clean
    27  force :;
    28