← Back to team overview

ubuntu-audio-dev team mailing list archive

Re: packaging for dbmeasure and dbverify

 

Lennart Poettering wrote:
> On Wed, 10.03.10 22:17, David Henningsson (launchpad.web@xxxxxxxxxxxxxx) wrote:
> 
>> Hi,
>>
>> A packaged version of Lennart Poettering's tools "dbmeasure" and
>> "dbverify" are now available for Karmic and Lucid in the
>> ubuntu-audio-dev PPA. (When the builders finish...) Hopefully we can ask
>> our users to use that tool to help us figure out what's wrong with their
>> dB data.
>>
>> dbmeasure and dbverify would need some polishing (e g -h and -v
>> switches, and man pages) if they would ever go into an official repository.
>>
>> @Lennart: The only change to the source was to the Makefile, where I
>> added install and uninstall targets.
> 
> Have a git patch for that?
> 

Sure. You might want to change /usr/bin to /usr/local/bin before applying.

// David
>From 48348dc48bb1142b3d283ca2fe6918e989772bbe Mon Sep 17 00:00:00 2001
From: David Henningsson <diwic@xxxxxxxxxx>
Date: Tue, 23 Mar 2010 08:55:50 +0100
Subject: [PATCH] Add install and uninstall make targets

---
 Makefile |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 95fc7c9..593c6a8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 CFLAGS=-Wextra -Wall -O0 -g -pipe `pkg-config --cflags alsa`
 LIBS=`pkg-config --libs alsa` -lm
+BINDIR=/usr/bin
 
 all: dbmeasure dbverify
 
@@ -9,5 +10,15 @@ dbmeasure: dbmeasure.o
 dbverify: dbverify.o
 	$(CC) -o dbverify $^ $(CFLAGS) $(LIBS)
 
+install: all
+	install -d $(DESTDIR)$(BINDIR)
+	install -m 755 dbmeasure $(DESTDIR)$(BINDIR)/dbmeasure
+	install -m 755 dbverify $(DESTDIR)$(BINDIR)/dbverify
+
+uninstall:
+	rm -f $(DESTDIR)$(BINDIR)/dbmeasure
+	rm -f $(DESTDIR)$(BINDIR)/dbverify
+
+
 clean:
 	rm -f *.o dbmeasure dbverify
-- 
1.6.3.3


References