6
tmpdir=debian/$(pkgname)
7
shrdir=$(tmpdir)/usr/share/$(pkgname)
8
docdir=$(tmpdir)/usr/share/doc/$(pkgname)
10
mandir=$(tmpdir)/usr/share/man/$(mansec)
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
configure: configure-stamp
29
# Add here commands to configure the package.
31
quilt push -a || test $$? = 2
37
build-stamp: configure-stamp
40
$(MAKE) -f Makefile.lnx
47
rm -f build-stamp configure-stamp
50
[ ! -f Makefile.lnx ] || $(MAKE) -f Makefile.lnx clean
51
quilt pop -a -R || test $$? = 2
53
# remove quilt remains
57
# Add here commands to clean up after the build process.
66
# Add here commands to install the package into debian/hfsprogs.
67
install -m 644 newfs_hfs.tproj/hfsbootdata.img $(shrdir)/hfsbootdata
68
install -m 755 newfs_hfs.tproj/newfs_hfs $(tmpdir)/sbin/mkfs.hfsplus
69
install -m 755 fsck_hfs.tproj/fsck_hfs $(tmpdir)/sbin/fsck.hfsplus
70
install -m 644 newfs_hfs.tproj/newfs_hfs.8 $(mandir)/mkfs.hfsplus.8
71
install -m 644 fsck_hfs.tproj/fsck_hfs.8 $(mandir)/fsck.hfsplus.8
73
# Build architecture-independent files here.
74
binary-indep: build install
76
# Build architecture-dependent files here.
77
binary-arch: build install
93
binary: binary-indep binary-arch
94
.PHONY: build clean binary-indep binary-arch binary install configure