restore the original install-data-hook in case of debug builds

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45dc86b7473babba723a873e4a21c8021797fb07
This commit is contained in:
Andras Timar 2023-10-16 17:21:37 +02:00
parent af8ba81943
commit 41fce2572b

View file

@ -689,6 +689,11 @@ $(DIST_FOLDER)/admin/%: $(srcdir)/admin/%
@mkdir -p $(dir $@)
@cp $< $@
if ENABLE_DEBUG
install-data-hook:
mkdir -p $(DESTDIR)$(pkgdatadir)/browser; \
cp -a dist/ $(DESTDIR)$(pkgdatadir)/browser/;
else
install-data-hook:
mkdir -p $(DESTDIR)$(pkgdatadir)/browser; \
rsync -a --exclude='src' \
@ -699,6 +704,7 @@ install-data-hook:
--exclude='multidocs.html' \
--exclude='tsconfig.tsbuildinfo' \
dist $(DESTDIR)$(pkgdatadir)/browser/;
endif
libs:
@mkdir -p $(abs_srcdir)/libs