File: Makefile.am

package info (click to toggle)
soundscaperenderer 0.6.0%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,148 kB
  • sloc: cpp: 36,430; sh: 4,522; makefile: 847; ansic: 762; javascript: 593; python: 57
file content (47 lines) | stat: -rw-r--r-- 1,377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## This file will be processed by automake (which is called by autogen.sh) to
## generate Makefile.in, which in turn will be processed by configure to
## generate Makefile.

## comments starting with a single # are copied to Makefile.in (and afterwards
## to Makefile), comments with ## are dropped.

if ENABLE_BROWSER_GUI

BROWSER_GUI_FILES = package.json yarn.lock webpack.config.js README.md \
	src/index.js \
	src/sceneviewer.js \
	src/style.css

dist_noinst_DATA = $(BROWSER_GUI_FILES)

export PATH := $(PATH):$(abs_builddir)/node_modules/.bin
export NODE_PATH := $(abs_builddir)/node_modules

YARN_OPTIONS = --no-progress --non-interactive \
	--cwd "$(abs_srcdir)" \
	--modules-folder "$(NODE_PATH)"

WEBPACK_PATH = ../data/websocket_resources
INSTALL_PATH = "$(DESTDIR)$(pkgdatadir)/websocket_resources"

all-local: $(WEBPACK_PATH)/index.html

$(WEBPACK_PATH)/index.html: $(BROWSER_GUI_FILES)
	$(RM) -r $(WEBPACK_PATH)/chunks
	$(YARN) $(YARN_OPTIONS) install
	$(YARN) $(YARN_OPTIONS) run build --output-path $(WEBPACK_PATH)

install-data-hook:
	$(MKDIR_P) $(INSTALL_PATH)/chunks
	$(INSTALL) -m 644 $(WEBPACK_PATH)/index.html $(INSTALL_PATH)
	$(INSTALL) -m 644 $(WEBPACK_PATH)/chunks/* $(INSTALL_PATH)/chunks

distclean-local:
	$(RM) -r $(NODE_PATH)
	$(RM) -r $(WEBPACK_PATH)/index.html
	$(RM) -r $(WEBPACK_PATH)/chunks

uninstall-local:
	$(RM) -r $(INSTALL_PATH)

endif