update make package

This commit is contained in:
2024-10-30 11:14:43 +08:00
parent 8ab91bab70
commit 8348ecc30b
2 changed files with 6 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ dist:
--exclude=../crontask/crontask \
--exclude=../initems/initems
prep_deb: $(BINNAME)
pre_build: $(BINNAME)
# clear build cache
rm -rf $(FrontBuildDir)/front/*
rm -rf $(DebFEBuildDir)/front/*
@@ -134,7 +134,7 @@ replace_chinese:
@find $(DebBuildOMCDir)/etc/db -type f -name '*.sql' -exec sed -i '' 's/[一-龥]//g' {} +
@echo "Replace all chinese charecter."
deb: prep_deb
deb: pre_build
cp -rf $(CustomizedDir)/agt.d $(DebBuildOMCDir)/static
cp -rf $(CustomizedDir)/omc.d $(DebBuildOMCDir)/static
#cp -rf $(BuildDir)/nginx/* $(DebBuildDir)/etc/nginx/conf.d
@@ -145,7 +145,7 @@ deb: prep_deb
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' $(DebBuildDir)/usr/local/omc/etc/default/restconf.yaml
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(DebPkgFile)
ba-deb: prep_deb replace_chinese
badeb: pre_build replace_chinese
cp -rf $(CustomizedDir)/ba.d $(DebBuildOMCDir)/static
#cp -rf $(BuildDir)/nginx/* $(DebBuildDir)/etc/nginx/conf.d
#cp -rf $(BuildDir)/systemd/*.service $(DebBuildDir)/lib/systemd/system/