File: rules

package info (click to toggle)
avfs 1.0.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,484 kB
  • sloc: ansic: 41,980; sh: 13,208; perl: 1,916; makefile: 521; lisp: 14; csh: 12
file content (20 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

CFLAGS = `dpkg-buildflags --get CFLAGS`
CFLAGS += -Wall
LDFLAGS = `dpkg-buildflags --get LDFLAGS`
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`

%:
	dh ${@} --with quilt,autoreconf


override_dh_auto_configure:
	touch configure 
	(export AWK=awk; ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" --enable-library --enable-fuse --disable-fuse-test)

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/avfs install
	# We do not build the dav module atm, so we don't need the password script either.
	rm -f $(CURDIR)/debian/avfs/usr/bin/davpass