[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

multiple debs



And again a question about multiple debs.

I'm trying this:

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs
                                                                                                                      
        # Add here commands to install the package into debian/tmp.
        $(MAKE) install ROOTDIR=`pwd`/debian/tmp
                                                                                                                      
        # Add the files in their own package directory
        dh_install --sourcedir=debian/tmp

The build and the install to `pwd`/debian/tmp is going ok. But when i do
dh_install --sourcedir=debian/tmp he says:

dh_install --sourcedir=debian/tmp
cp: `debian/tmp//sbin/raidstart' and `debian/tmp//sbin/raidstart' are
the same file

My question is why didn't he install it in the debian/package directory
?

And why isn't there a dir for every package in that source deb ?

I've attached my rules file: (hopefully that's enough)

-- 
Get my public gpg key: http://www.cacholong.nl/~matthijs/matthijs.gpg

I love apt-get
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

DH_VERBOSE=1
DH_COMPAT=4

CFLAGS = -Wall -g
                                                                                
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
endif

configure: configure-stamp
configure-stamp:
	dh_testdir

	./configure --prefix=/usr --sysconf=/etc

	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir

	$(MAKE) 

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	$(MAKE) clean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/tmp.
	$(MAKE) install ROOTDIR=`pwd`/debian/tmp

	# Add the files in their own package directory
	dh_install --sourcedir=debian/tmp

binary-indep: build install

# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build install
	dh_testdir
	dh_testroot

	dh_installdebconf
	dh_installdocs
	dh_installexamples
	dh_installchangelogs -Nraidtools2-udeb
	dh_installcron
	dh_installman
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_installdeb
	dh_md5sums -Nraidtools2-udeb
	dh_di_installchangelogs
	dh_di_gencontrol
	dh_di_makeshlibs
	dh_di_md5sums
	dh_di_builddeb
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: