File: rules

package info (click to toggle)
w3cam 0.7.2-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: ansic: 3,822; makefile: 68
file content (22 lines) | stat: -rwxr-xr-x 571 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


export DEB_CPPFLAGS_MAINT_APPEND = -DDEBIAN

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) msproper
	rm -f w3camd/Makefile

override_dh_auto_install:
	$(MAKE) install prefix=$(CURDIR)/debian/w3cam/usr \
			cgibindir=$(CURDIR)/debian/w3cam/usr/lib/cgi-bin
	mv $(CURDIR)/debian/w3cam/usr/lib/cgi-bin/*.scf \
			$(CURDIR)/debian/w3cam/etc
	chmod -x $(CURDIR)/debian/w3cam/etc/*.scf
	$(MAKE) -C w3camd install \
	prefix=$(CURDIR)/debian/w3cam/usr sbindir=\$${prefix}/sbin