| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
execute_before_dh_auto_build: |
| 11 |
rm -f src/bin.ts |
| 12 |
|
| 13 |
execute_after_dh_clean: |
| 14 |
rm -rf dist |
| 15 |
rm -rf deleteme |
| 16 |
|
| 17 |
execute_after_dh_installexamples: |
| 18 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 19 |
# patch example |
| 20 |
find $(CURDIR)/debian/node-glob/usr/share/doc/node-glob/examples/ -name '*.js' -exec \ |
| 21 |
sed -i 's,require\s*[(]\s*"[.][.][^"]*"\s*[)],require("glob"),g' {} \; |
| 22 |
else |
| 23 |
@echo '**********************************************************' |
| 24 |
@echo 'Skip example ' |
| 25 |
@echo '**********************************************************' |
| 26 |
endif |