I just split my package into three, seperating the info documentation
and the library, and I'm having trouble building the .changes file.
At the end of debuild, debian/files represents only the third package
built.  What creates this file, and is there a special way of handling
it for multiple packages with the same source?  Attached is my
debian/rules.

Thanks in advance,
Alex
#!/usr/bin/make -f
# Based loosely on the debian/rules file used by vim.

package=gnu-smalltalk

build:
# Include blox until there is a seperate shlib module
        ./modules blox
        ./configure --prefix=/usr --with-readline --with-x
        $(MAKE) clean && $(MAKE) gst CFLAGS="-O2 -g -Wall"
# Create the documentation
        cd docs && $(MAKE) all

clean:
        -rm -f build
        -$(MAKE) distclean
        -rm -f `find . -name "*~"`
        -rm -rf debian/tmp debian/files* core debian/substvars debian/libgst 
debian/gst-doc

binary-indep: build
#
# Create the gst-doc package
#
#   Initialize the building procedure
        dh_testdir
        dh_clean
#   Setup the directory structure
        install -d -o root -g root -m 755 debian/gst-doc
        cd debian/gst-doc && install -d -o root -g root -m 755 `cat ../dirs`
#   Install the info documentation
        cd docs && $(MAKE) install prefix=../debian/gst-doc/usr
#   Install the HTML documentation and build the package
        cp debian/dhelp debian/gst-doc/usr/doc/gnu-smalltalk/.dhelp
        dh_installdocs -pgst-doc docs/*.html
        dh_installchangelogs -pgst-doc
        cp debian/postinst.doc debian/postinst
        cp debian/postrm.doc debian/postrm
        dh_installdeb -pgst-doc
        dh_gencontrol -pgst-doc
        dh_md5sums -pgst-doc
        dh_builddeb -pgst-doc

binary-arch: build
#
# Create the gnu-smalltalk package
#
#   Initialize the building procedure
        dh_testdir
        dh_clean
#   Setup the directory structure
        install -d -o root -g root -m 755 debian/tmp
        cd debian/tmp && install -d `cat ../dirs`
        $(MAKE) install prefix=`pwd`/debian/tmp/usr
#   Install the other (Debian) stuff
        dh_installdocs
        dh_installchangelogs
        cp docs/gst.1 debian/tmp/usr/man/man1
        dh_strip
        dh_compress
        dh_installmenu
        cp debian/postinst.gst debian/postinst
        cp debian/postrm.gst debian/postrm
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb
#
# Now create the libgst package
#
#   Initialize the building procedure
        dh_testdir
        dh_clean
#   Setup the directory structure
        install -d -o root -g root -m 755 debian/libgst
        cd debian/libgst && install -d `cat ../dirs`
        cd lib && $(MAKE) install prefix=../debian/libgst/usr
#   Install the other (Debian) stuff
        dh_installdocs -plibgst
        dh_installchangelogs -plibgst
        dh_compress -plibgst
        dh_shlibdeps -plibgst
        rm -f debian/postinst debian/postrm
        dh_installdeb -plibgst
        dh_gencontrol -plibgst
        dh_md5sums -plibgst
        dh_builddeb -plibgst


binary: binary-indep binary-arch


.PHONY: binary binary-arch binary-indep clean

Attachment: pgp4ma5k7PCei.pgp
Description: PGP signature

Reply via email to