In a Debian package, you’d do this either by deleting the files after installation (in the source package) but before the package is built, or by not listing them in the lists of files to install, or by excluding them from the installation (for certain types of files only).
If you’re using short-style
debian/rules, you’ll probably be using (implicitly)
dh_auto_install, which runs the upstream installation to place files in
debian/tmp (since you’re building multiple packages);
dh_install, which copies files from
debian/tmp to the appropriate installation target (
debian/foobar etc.) based on the contents of
.install files in
The three options listed above translate to the following.
To delete files after they’re copied to
debian/tmp, do something like
rm -f debian/tmp/bin/printjob_svr.bin
dh_install to skip files, don’t list them in
.install files; that means you can’t use wildcards or plain directory names (
bin/*). You should also list the skipped files in
debian/not-installed, but see the caveat in
To exclude files explicitly, override the targets and add
-X options; this will only work for
dh_ commands which support this:
(this doesn’t correspond to your use-case, I’m listing it for completeness).