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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
PKGDIR := packages
PACKAGES := $(shell cat debian/control.in)
js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
%:
dh $@
override_dh_auto_clean:
rm -rf debian/build
override_dh_auto_build:
dh_auto_build
mkdir -p debian/build
# include every package README.md as README.$(pkg).md
$(foreach pkg,$(PACKAGES), \
cp $(PKGDIR)/$(pkg)/README.md debian/build/README.$(pkg).md ; )
override_dh_installdirs:
$(foreach pkg,$(PACKAGES), \
dh_installdirs usr/lib/nodejs/$(pkg) ; )
override_dh_install:
dh_install
$(foreach pkg,$(PACKAGES), \
dh_install $(PKGDIR)/$(pkg)/package.json usr/lib/nodejs/$(pkg)/ ; \
dh_install $(PKGDIR)/$(pkg)/src/*.js usr/lib/nodejs/$(pkg)/ ; )
override_dh_installdocs:
$(foreach pkg,$(PACKAGES), \
dh_installdocs debian/build/README.$(pkg).md ; )
# generate debian/control, see debian/control.generate for documentation
dist:
debian/control.generate
|