3 # Uncomment this to turn on verbose mode.
12 LDFLAGS += -Wl,--as-needed
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 configure: configure-stamp
23 # Add here commands to configure the package.
30 build-stamp: configure-stamp
33 # Add here commands to compile the package.
37 -D_FILE_OFFSET_BITS=64 \
39 -DFUSE_USE_VERSION=25 \
40 -I$(PREFIX)/include -I. \
54 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
55 cat $$f > $${f%.in}; \
56 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
57 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
65 rm -f build-stamp configure-stamp
67 # Add here commands to clean up after the build process.
68 rm -rf libsqlfs_mount sqlfs_txn_cmd
70 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
83 # Add here commands to install the package into debian/tmp.
84 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/init.d/
85 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/
86 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/
87 mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/bin
88 install -c libsqlfs_mount $(CURDIR)/debian/tmp$(PREFIX)/bin/
89 install -c sqlfs_txn_cmd $(CURDIR)/debian/tmp$(PREFIX)/bin/
90 install -c sqlfs-mount $(CURDIR)/debian/tmp/etc/rc.d/init.d/
91 ln -s ../init.d/sqlfs-mount $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S10sqlfs-mount
92 ln -s ../init.d/sqlfs-mount $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/S10sqlfs-mount
94 # Build architecture-independent files here.
95 binary-indep: build install
96 # We have nothing to do by default.
98 # Build architecture-dependent files here.
99 binary-arch: build install
105 dh_install --sourcedir=debian/tmp
108 # dh_installlogrotate
129 binary: binary-indep binary-arch
130 .PHONY: build clean binary-indep binary-arch binary install configure