File: rules

package info (click to toggle)
uwsgi-plugin-mongo 0.0.8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 48 kB
  • sloc: makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

# Fuse uWSGI and our package versions, flattened to native format
UWSGI_VERSION = $(shell dpkg-query --show --showformat '$${Version}' uwsgi-src)
OUR_BINARY_VERSION = $(subst -,+,$(UWSGI_VERSION))+$(DEB_VERSION)

%:
	dh $@ --with uwsgi

override_dh_auto_build:
	uwsgi --build-plugin /usr/src/uwsgi/plugins/emperor_mongodb
	uwsgi --build-plugin /usr/src/uwsgi/plugins/gridfs
	uwsgi --build-plugin /usr/src/uwsgi/plugins/mongodblog
	uwsgi --build-plugin /usr/src/uwsgi/plugins/stats_pusher_mongodb

override_dh_gencontrol:
	dh_gencontrol -- -v$(OUR_BINARY_VERSION)