File: rules

package info (click to toggle)
node-magic-string 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 316 kB
  • ctags: 28
  • sloc: makefile: 12; sh: 2
file content (21 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

SOURCES = $(shell find src/ -name "*.js")

TARGETS = $(subst src, dist, $(SOURCES))

COMPILE_MODULES = compile-modules convert -f commonjs -I/usr/lib/nodejs/vlq

.PHONY: dist

%.js:
	$(COMPILE_MODULES) $(subst dist, src, $@) > $@

%:
	dh $@

override_dh_auto_build: dist $(TARGETS)
	mv dist/index-legacy.js dist/index.js

dist:
	mkdir -p dist/utils