File: rules

package info (click to toggle)
glfw 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 3,172 kB
  • ctags: 2,055
  • sloc: ansic: 14,940; objc: 934; pascal: 521; sh: 445; makefile: 174
file content (25 lines) | stat: -rwxr-xr-x 709 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-
%:
	dh ${@}

override_dh_auto_install:
	PREFIX=/usr sh compile.sh
	dh_auto_install
	
override_dh_installdirs:
	$(MAKE) x11
	sed -e 's,\@PREFIX\@,/usr,' ./lib/x11/libglfw.pc.in > ./lib/x11/libglfw.pc
	make x11-install PREFIX=$(CURDIR)/debian/tmp/usr
	cp lib/x11/libglfw.so debian/tmp/usr/lib/libglfw.so.2.6

override_dh_installdocs:
	dh_installdocs readme.html

verride_dh_clean:
	[ ! -f Makefile ] || $(MAKE) x11-clean
	find -name '*.o' -or -name '*.a' -or -name '*.so' | xargs rm
	find -type f -executable -not -wholename "*debian*" -delete
	rm config.log examples/Makefile.x11 lib/x11/Makefile.x11
	lib/x11/libglfw.pc lib/x11/libglfw.pc.in tests/Makefile.x11
	dh_clean