touch build-stamp fakeroot debian/rules binary dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/gnome-clipboard-daemon. /usr/bin/make DESTDIR=/tmp/buildd/gnome-clipboard-daemon-1.0/debian/gnome-clipboard-daemon make[1]: Entering directory `/tmp/buildd/gnome-clipboard-daemon-1.0' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/buildd/gnome-clipboard-daemon-1.0' cp gnome-clipboard-daemon /usr/bin cp: cannot create regular file `/usr/bin/gnome-clipboard-daemon': Permission denied make: *** [install] Error 1 pbuilder: Failed autobuilding of package -> Aborting with an error -> unmounting dev/pts filesystem -> unmounting proc filesystem -> cleaning the build env -> removing directory /var/cache/pbuilder/build//15604 and its subdirectories debian/rules (install section): install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/gnome-clipboard-daemon. $(MAKE) DESTDIR=$(CURDIR)/debian/gnome-clipboard-daemon cp gnome-clipboard-daemon $(DESTDIR)/usr/bin chmod 755 $(DESTDIR)/usr/bin/gnome-clipboard-daemon Original makefile: .PHONY: all distdir dist clean CC=gcc CFLAGS=-Wall -O2 VERSION=1.0 all: gnome-clipboard-daemon gnome-clipboard-daemon: main.o gnome-clipboard-daemon.o selection-data-list.o $(CC) $(CFLAGS) main.o gnome-clipboard-daemon.o selection-data-list.o -o gnome-clipboard-daemon `pkg-config --libs gtk+-2.0` main.o: main.c $(CC) $(CFLAGS) -c main.c -o main.o `pkg-config --cflags gtk+-2.0` gnome-clipboard-daemon.o: gnome-clipboard-daemon.c gnome-clipboard-daemon.h $(CC) $(CFLAGS) -c gnome-clipboard-daemon.c -o gnome-clipboard-daemon.o `pkg-config --cflags gtk+-2.0` selection-data-list.o: selection-data-list.c selection-data-list.h $(CC) $(CFLAGS) -c selection-data-list.c -o selection-data-list.o `pkg-config --cflags gtk+-2.0` distdir: rm -rf gnome-clipboard-daemon-$(VERSION) mkdir gnome-clipboard-daemon-$(VERSION) cp main.c gnome-clipboard-daemon.c gnome-clipboard-daemon.h selection-data-list.c selection-data-list.h Makefile gnome-clipboard-daemon-$(VERSION)/ dist: distdir rm -f gnome-clipboard-daemon-$(VERSION).tar.bz2 tar -cf gnome-clipboard-daemon-$(VERSION).tar gnome-clipboard-daemon-$(VERSION) bzip2 -9 gnome-clipboard-daemon-$(VERSION).tar rm -rf gnome-clipboard-daemon-$(VERSION) clean: rm -f *.o test gnome-clipboard-daemon