File: rules

package info (click to toggle)
node-yarnpkg 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,752 kB
  • sloc: javascript: 38,953; ansic: 26,035; cpp: 7,247; sh: 2,829; makefile: 724; perl: 493
file content (53 lines) | stat: -rwxr-xr-x 1,582 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
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
48
49
50
51
52
53
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_STRIP  = -Wl,-Bsymbolic-functions
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--export-if-defined=main -Wl,--export-if-defined=__main_argc_argv

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --buildsystem=nodejs_no_lerna
	set e
	for p in packages/*; do \
	  echo "Building $$p"; \
	  mkdir -p "$$p"/lib/; \
	  rsync -a --exclude '*.ts' --exclude '*.tsx' --include '*.d.ts' "$$p"/sources/ "$$p"/lib/; \
	  if [ "$$p" = "packages/yarnpkg-pnp" ]; then \
	    node scripts/compile.js "$$p" --emitDeclarationOnly; \
	  elif [ "$$p" = "packages/yarnpkg-libui" ]; then \
	    node scripts/compile.js "$$p" --inline; \
	  else \
	    node scripts/compile.js "$$p"; \
	  fi; \
	  echo "Built $$p"; \
	done

execute_before_dh_auto_install:
	set -e; \
	for p in packages/*; do \
	  cp -f "$$p"/package.json "$$p"/.package.json; \
	  debian/apply-publish-config "$$p"/package.json; \
	done

execute_before_dh_auto_clean:
	for p in packages/*; do \
		if test -e "$$p"/.package.json; then \
			mv -f "$$p"/.package.json "$$p"/package.json; \
		fi; \
	done

execute_after_dh_installdocs:
	dh_nodejs_autodocs
	install -m 644 CODE_OF_CONDUCT.md CONTRIBUTING.md \
	GOVERNANCE.md HISTORY.md README.md SECURITY.md \
	debian/yarnpkg/usr/share/doc/node-yarnpkg-cli/

execute_after_dh_fixperms:
	chmod 755 debian/yarnpkg/usr/share/nodejs/@yarnpkg/cli/bundles/yarn.js \
		debian/yarnpkg/usr/share/nodejs/@yarnpkg/builder/lib/cli.js