Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 3 | Rev 5 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/usr/bin/make -f

export DH_VERBOSE=1

configure: 
        dh_testdir
        cp /usr/share/misc/config.* autoconf
        autoreconf -f -v -i
        ./configure \
                --prefix=/usr \
                --mandir=\$${prefix}/share/man 
        touch configure-stamp

configure-stamp: configure

build-stamp: build

build: configure-stamp 
        dh_testdir
        $(MAKE)
        touch build-stamp

clean:
        dh_testdir
        dh_testroot
        # Stale build files
        [ ! -f Makefile ] || $(MAKE) clean
        [ ! -f Makefile ] || $(MAKE) distclean
        -rm -f build-stamp configure-stamp
        -rm -rf config.log autoconf/config.guess autoconf/config.sub autoconf/depcomp autoconf/ltmain.sh autoconf/missing autoconf/mkinstalldirs autom4te.cache libtool
        dh_clean

install: build-stamp
        dh_testdir
        dh_testroot
        dh_installdirs

        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

binary-indep: build install

binary-arch: install
        dh_testdir
        dh_testroot
        dh_install --sourcedir=debian/tmp

        dh_installdocs
        dh_installexamples -p libtar-dev libtar/libtar.c libtar/Makefile
        dh_installman 
        dh_installchangelogs ChangeLog
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure