rules 1013 Bytes
Newer Older
1 2
#!/usr/bin/make -f

Cyril Brulebois committed
3 4
PACKAGE = xserver-xorg-video-fbdev
OOT     = --builddirectory=build
5

Cyril Brulebois committed
6 7 8 9 10 11
# Clean:
override_dh_auto_clean:
	dh_auto_clean
	rm -rf build-main/ debian/tmp-main/
	rm -rf build-udeb/ debian/tmp-udeb/

Cyril Brulebois committed
12 13 14 15
# Configuration, with or without xv:
override_dh_auto_configure:
	dh_auto_configure $(OOT)-main/ -- --enable-xv
	dh_auto_configure $(OOT)-udeb/ -- --disable-xv
David Nusinow committed
16

Cyril Brulebois committed
17 18
# Build:
override_dh_auto_build:
Cyril Brulebois committed
19 20
	$(MAKE) -C build-main/
	$(MAKE) -C build-udeb/
21

Cyril Brulebois committed
22 23
# Install:
override_dh_auto_install:
Cyril Brulebois committed
24 25
	$(MAKE) -C build-main/ install DESTDIR=$(CURDIR)/debian/tmp-main
	$(MAKE) -C build-udeb/ install DESTDIR=$(CURDIR)/debian/tmp-udeb
26

Cyril Brulebois committed
27 28 29 30 31
# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp-* -name '*.la' -delete
	dh_install -p$(PACKAGE)      --sourcedir=debian/tmp-main --fail-missing
	dh_install -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb --fail-missing
32

Cyril Brulebois committed
33 34
# That's a plugin, use appropriate warning level:
override_dh_shlibdeps:
35
	dh_shlibdeps -- --warnings=6
36

Cyril Brulebois committed
37 38
%:
	dh $@ --with quilt,autoreconf,xsf