On Wed, 2004-05-12 at 05:20, Lars E. D. Jensen wrote: > Hi list > > I'm trying to make a deb package for the first time. > > My rules script looks like this:
If you would put the entire package in public web/ftp space, it would be easier to help you. Any number of things could be wrong (in fact, it sounds like you do have at least a couple of things broken) and the snippet you posted is not nearly enough context. If you don't have a public place to put the package, you should at least post the entire rules file. In general, you want to do two invocations of make. The one in your build should prefix with the real destination directory on the target system (i.e. relative to "/" on the system the package will be installed on) and the one in your install should be prefixed with the build directory. To do the latter, you must be careful that the variable you pass to the make is actually obeyed by the upstream Makefile. DESTDIR is normal for packages built with GNU autotools, but not all packages have autotools build systems. As for the distclean problem, it sounds like you don't, in fact, have a GNU autotools build system (possibly a hand-rolled Makefile?) and therefore only a 'clean' target is provided. So in your clean target in rules, just make the upstream clean target instead of 'distclean'. I am guessing you did a dh_make. A word of warning: it is folly to run any tool that autogenerates code without knowing what every line of the generated code does. Study the results of the dh_make carefully until you understand every single line. Don't assume that dh_make will produce meaningful results without tweaking. Ben -- synrg at debian dot org