File: rules

package info (click to toggle)
yapra 0.1.2-7.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 616 kB
  • sloc: ruby: 3,572; javascript: 248; makefile: 10
file content (14 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

DEB_DESTDIR=$(CURDIR)/debian/yapra
RUBYLIBDIR = $(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendordir"]')

%:
	dh $@ --with quilt

execute_after_dh_install:
	install -m 755 bin/yapra $(DEB_DESTDIR)/usr/bin/yapra
	find plugins -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
	find legacy_plugins -name '*.rb' -prune 'twitter.rb' -prune 'apply_text_html.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
	find lib-plugins -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
	cd lib && find . -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/$(RUBYLIBDIR)/{}