Fix directory for dev profile in makefile

Because for whatever reason it uses "debug" instead of the profile name.
This commit is contained in:
Thayne McCombs 2022-12-02 00:27:01 -07:00
parent 77a12204bb
commit df4e297cb8
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,4 @@
PROFILE=release
EXE=target/$(PROFILE)/fd
CARGO_CMD=cargo
prefix=/usr/local
bindir=$(prefix)/bin
@ -7,8 +6,15 @@ datadir=$(prefix)/share
exe_name=fd
build_opts=--locked --profile $(PROFILE)
ifeq ($(PROFILE),dev)
profile_dir=debug
else
profile_dir=$(PROFILE)
endif
EXE=target/$(profile_dir)/fd
ifdef TARGET
EXE=target/$(TARGET)/$(PROFILE)/fd
EXE=target/$(TARGET)/$(profile_dir)/fd
build_opts+=--target $(TARGET)
endif