Skip to content

Commit fd9481a

Browse files
committed
Makefile speedup when fd is installed
1 parent 0458557 commit fd9481a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ endif
2626
$(target_dir):
2727
mkdir $@
2828

29-
$(exe): $(shell find . unison -type f -name '*.hs') $(shell find . unison -type f -name '*.yaml')
30-
@echo $(exe)
31-
@echo $@
32-
stack build $(STACK_FLAGS)
29+
$(exe): $(shell fd '' . unison --type file -e hs 2>/dev/null || find . unison -type f -name '*.hs') $(shell fd '' . unison --type file -e yaml 2>/dev/null || find . unison -type f -name '*.yaml')
30+
@echo Building $(exe_name)
31+
stack build $(STACK_FLAGS) $(exe_name)
3332

3433
$(installed_share): $(exe) $(target_dir)
3534
cp $(exe) $(installed_share)

0 commit comments

Comments
 (0)