From 41fce2572b1b55e360964532f071cc688e8f305c Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Mon, 16 Oct 2023 17:21:37 +0200 Subject: [PATCH] restore the original install-data-hook in case of debug builds Signed-off-by: Andras Timar Change-Id: I45dc86b7473babba723a873e4a21c8021797fb07 --- browser/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser/Makefile.am b/browser/Makefile.am index 08238b579..18c9ec90b 100644 --- a/browser/Makefile.am +++ b/browser/Makefile.am @@ -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