File: rules

package info (click to toggle)
dxsamples 4.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 26,348 kB
  • ctags: 1,513
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,101
file content (22 lines) | stat: -rwxr-xr-x 634 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
20
21
22
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr/share

override_dh_auto_install:
	$(MAKE) install prefix=$(CURDIR)/debian/dxsamples/usr/share

	# We don't need no precompiled binaries.
	$(RM) -f $(CURDIR)/debian/dxsamples/usr/share/dx/samples/data/externalfilter_*
	
	# Some scripts are not marked executable by mistake.  Need to
	# fixup.
	for i in `find $(CURDIR)/debian/dxsamples/usr/share/dx/samples -type f`; do \
		m_head=`head -1 $$i`; \
		test -n "$$m_head" || continue; \
		echo "$$m_head" | egrep -qv '#![[:space:]]*/bin/.*sh' || chmod a+x "$$i"; \
	done