Add clean-deb target

This commit is contained in:
Aoran Zeng 2025-06-16 16:52:11 +08:00
parent 2124770aeb
commit 0821663073
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

8
Makefile Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/make -f
# -------------------------------------------------------------- # --------------------------------------------------------------
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# -------------------------------------------------------------- # --------------------------------------------------------------
@ -7,7 +8,7 @@
# | sanchuanhehe <wyihe5520@gmail.com> # | sanchuanhehe <wyihe5520@gmail.com>
# | # |
# Created On : <2023-08-28> # Created On : <2023-08-28>
# Last Modified : <2025-06-15> # Last Modified : <2025-06-16>
# -------------------------------------------------------------- # --------------------------------------------------------------
On-Linux = 0 On-Linux = 0
@ -125,8 +126,11 @@ clean:
build-deb: build-deb:
@$(MAKE) -C pkg/deb deb-build @$(MAKE) -C pkg/deb deb-build
clean-deb:
@$(MAKE) -C pkg/deb deb-clean
install: $(Target-Name) install: $(Target-Name)
install -D -m 755 $(Target-Name) $(DESTDIR)/usr/bin/$(Target-Name) install -D -m 755 $(Target-Name) $(DESTDIR)/usr/bin/$(Target-Name)
install -D -m 644 doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/chsrc.1 install -D -m 644 doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/chsrc.1
.PHONY: all CI debug test test-make-env test-xy test-fw fastcheck test-cli clean install .PHONY: all CI debug test test-make-env test-xy test-fw fastcheck test-cli clean install build-deb clean-deb