diff --git a/makefile b/makefile index 183b51ee..6c0dd9cc 100644 --- a/makefile +++ b/makefile @@ -48,6 +48,12 @@ ReleaseDebs = $(ReleaseDir)/debs/$(PLATFORM) CrontaskSize = 27788951 RestagentSize = 29525312 BinWriterDir = $(HOME)/bin +ifeq ($(shell lsb_release -r --short), 22.04) +DebBuildDir := $(DebBuild2204Dir) +DebPkgFile := $(PROJECT)-$(VERSION)-22.04-$(Release).$(PLATFORM).deb +else +DebPkgFile := $(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb +endif .PHONY: all $(RESTAGENT) $(CRONTASK) $(SshSvcBin) $(CapTraceBin) $(Data2htmlBin) all: $(RESTAGENT) $(CRONTASK) $(SshSvcBin) $(CapTraceBin) $(Data2htmlBin) @@ -90,12 +96,6 @@ dist: --exclude=../initems/initems deb: $(BINNAME) -ifeq ($(shell lsb_release -r --short), 22.04) -DebBuildDir := $(DebBuild2204Dir) -DebPkgFile := $(PROJECT)-$(VERSION)-22.04-$(Release).$(PLATFORM).deb -else -DebPkgFile := $(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb -endif cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir) cp -rf $(CrontaskDir)/$(CRONTASK) $(BuildOMCBinDir) cp -rf $(SshSvcDir)/$(SshSvcBin) $(BuildOMCBinDir)