Re: [LAD] [LAU] [ANN] jack_capture V0.9.32

From: Adam Sampson <ats@email-addr-hidden>
Date: Wed Jan 28 2009 - 22:56:41 EET

"Kjetil S. Matheussen" <k.s.matheussen@email-addr-hidden> writes:

> Sure, but I'm not familiar with the use of DESTDIR. How do you want
> the makefile to look?

Something like this, so it supports both prefix and DESTDIR, creates the
directories it needs if they don't exist, depends on the binaries being
built first, and uses install rather than cp (which fails if the
binary's in use):

DESTDIR =
prefix = /usr/local
bindir = $(prefix)/bin

targets = jack_capture jack_capture_gui jack_capture_gui2

install: $(targets)
         mkdir -p $(DESTDIR)$(bindir)
         install -m755 $(targets) $(DESTDIR)$(bindir)

The reason for not building DESTDIR into bindir directly is that you
should be able to configure and build the package with DESTDIR set, and
not have the DESTDIR burnt into the binaries. This doesn't matter for
jack_capture, but it's still a good habit to get into if you're rolling
your own build system.

I wrote a guide to making software packageable a while ago which might
be of interest:
  http://offog.org/articles/packaging/

-- 
Adam Sampson <ats@email-addr-hidden>                         <http://offog.org/>
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Thu Jan 29 00:15:05 2009

This archive was generated by hypermail 2.1.8 : Thu Jan 29 2009 - 00:15:06 EET