Skip to content

Commit

Permalink
Deal with symlinks so 'make install' works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Sep 2, 2024
1 parent 04d65bb commit bdcc3f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

%:
dh $@

execute_after_dh_auto_install:
$(RM) -f debian/tmp/var/lib/piper-tts/*.onnx.*

3 changes: 3 additions & 0 deletions voices/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VOICES = \

prefix ?= /usr
voice_prefix ?= $(prefix)/lib/piper-tts/voices
voice_link_prefix ?= /var/lib/piper-tts

VOICES_EXP = $(patsubst %, $(DESTDIR)$(voice_prefix)/%, $(VOICES))

Expand All @@ -12,3 +13,5 @@ install: $(VOICES_EXP)

$(DESTDIR)$(voice_prefix)/%: %
install -D -m 0644 $< $@
test -d $(DESTDIR)$(voice_link_prefix) || mkdir -p $(DESTDIR)$(voice_link_prefix)
ln -sf $@ $(DESTDIR)$(voice_link_prefix)/$<

0 comments on commit bdcc3f2

Please sign in to comment.