== Simple C program with Makefile ==

Upstream package name: hello-c
Upstream version name: 1.0
Sources: hello.c Makefile (without $DESTDIR)

This is almost the same source as example-0001-make-c

But its makefile lacks $DESTDIR/ support and we start from its tarball.

(emulating the real upstream source obtained from the remote site.)

1. Obtain hello-c-1.0.tar.gz

 $ wget http://example.org/pub/hello-c-1.0.tar.gz

=> step1

2. Untar hello-c-1.0.tar.gz

 $ tar -xvzf hello-c-1.0.tar.gz

=> step2

3. make templates files etc.

 $ hello-c-1.0/
 $ debmake

=> step3

4. make Debian package modification to upstream source.

We use dquilt command documented in the maint-guide package.

 $ dquilt new 0001-DESTDIR
 $ dquilt add Makefile
 $ vim Makefile
  ... add $(DESTDIR)/
 $ dquilt refresh
 $ dquilt -e
 ... add patch comment
 $ dquilt pop -a

=> step4

5. build Debian source and binary packages

 $ debuild
 $ cd -

=> step5

