Skip to content

Commit

Permalink
Fix directory for dev profile in makefile
Browse files Browse the repository at this point in the history
Because for whatever reason it uses "debug" instead of the profile name.
  • Loading branch information
tmccombs committed Dec 2, 2022
1 parent e3d7f52 commit 3d4109f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
@@ -1,14 +1,20 @@
PROFILE=release
EXE=target/$(PROFILE)/fd
CARGO_CMD=cargo
prefix=/usr/local
bindir=$(prefix)/bin
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

Expand Down

0 comments on commit 3d4109f

Please sign in to comment.