Fix Makefile for deb

This commit is contained in:
Aoran Zeng 2025-06-20 22:30:05 +08:00
parent 429fe656b2
commit 168cce314f
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 6 additions and 4 deletions

View File

@ -200,8 +200,10 @@ build-deb:
clean-deb:
@$(MAKE) -C pkg/deb deb-clean
install: build-in-release-mode
install: $(ReleaseMode-Target-Name)
install -D -m 755 $(ReleaseMode-Target-Name) $(DESTDIR)/usr/bin/chsrc
install -D -m 644 doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/chsrc.1
.PHONY: all build build-in-dev-mode build-in-debug-mode build-in-release-mode build-in-ci-release-mode debug check test test-make-env test-xy test-fw fastcheck test-cli clean install build-deb clean-deb
.PHONY: all b build bd br bcir d t check c \
build-in-dev-mode build-in-debug-mode build-in-release-mode build-in-ci-release-mode \
debug test test-make-env test-xy test-fw fastcheck test-cli clean install build-deb clean-deb

View File

@ -8,7 +8,7 @@
# Contributors : Nil Null <nil@null.org>
# |
# Created On : <2025-06-14>
# Last Modified : <2025-06-15>
# Last Modified : <2025-06-20>
#
# 该文件是 Makefile 格式
# --------------------------------------------------------------
@ -43,7 +43,7 @@ Chsrc-Root-Dir = $(CURDIR)/../../
override_dh_auto_build:
# 切换到 chsrc 根目录
@$(MAKE) -C $(Chsrc-Root-Dir) all
@$(MAKE) -C $(Chsrc-Root-Dir) build-in-release-mode
override_dh_auto_install:
@$(MAKE) -C $(Chsrc-Root-Dir) install DESTDIR=$(CURDIR)/debian/chsrc