OLD | NEW |
1 #!/usr/bin/make -f | 1 #!/usr/bin/make -f |
2 export DH_VERBOSE = 1 | 2 export DH_VERBOSE = 1 |
3 | 3 |
4 # Use DEB_BUILD_OPTIONS's parallel=n option (see Policy 4.9.1) | 4 # Use DEB_BUILD_OPTIONS's parallel=n option (see Policy 4.9.1) |
5 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS))) | 5 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS))) |
6 PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \ | 6 PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \ |
7 sed -e 's/.*parallel=\([0-9]\+\).*/\1/') | 7 sed -e 's/.*parallel=\([0-9]\+\).*/\1/') |
8 else | 8 else |
9 PARALLEL_JOBS := 1 | 9 PARALLEL_JOBS := 1 |
10 endif | 10 endif |
(...skipping 25 matching lines...) Expand all Loading... |
36 find . -name *.mk -execdir rm -f {} \; | 36 find . -name *.mk -execdir rm -f {} \; |
37 find . -name *.Makefile -execdir rm -f {} \; | 37 find . -name *.Makefile -execdir rm -f {} \; |
38 | 38 |
39 override_dh_auto_configure: | 39 override_dh_auto_configure: |
40 GYP_GENERATORS=make python dart/tools/gyp_dart.py all | 40 GYP_GENERATORS=make python dart/tools/gyp_dart.py all |
41 | 41 |
42 override_dh_auto_build: | 42 override_dh_auto_build: |
43 make -C dart -j$(PARALLEL_JOBS) \ | 43 make -C dart -j$(PARALLEL_JOBS) \ |
44 BUILDTYPE=$(BUILD_TYPE) $(BUILD_ARGS) create_sdk | 44 BUILDTYPE=$(BUILD_TYPE) $(BUILD_ARGS) create_sdk |
45 | 45 |
| 46 # Building the Dart SDK will already strip all binaries. |
| 47 override_dh_strip: |
| 48 |
46 override_dh_auto_install: | 49 override_dh_auto_install: |
47 mkdir -p debian/tmp/out | 50 mkdir -p debian/tmp/out |
48 cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out | 51 cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out |
49 mv debian/tmp/out/dart-sdk debian/tmp/out/dart | 52 mv debian/tmp/out/dart-sdk debian/tmp/out/dart |
50 dh_install | 53 dh_install |
51 dh_link | 54 dh_link |
OLD | NEW |