#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1

%:
	dh $@

override_dh_auto_build:
	cargo build --release --locked

override_dh_clean:
	# vendor 디렉토리를 제외하고 나머지 임시 파일만 정리
	cargo clean -v
	dh_clean -Xvendor

# 2. vendor 파일 변조 방지 (이번 에러의 핵심 해결책)
override_dh_update_autotools_config:
override_dh_autoreconf:

override_dh_auto_install:
	install -Dm644 assets/logo.png debian/yazi/usr/share/pixmaps/yazi.png
