From 605997a843cedbfaa6e1ea8af1b090b6476ef0cb Mon Sep 17 00:00:00 2001 From: rasher Date: Sun, 15 Jul 2007 22:19:24 +0000 Subject: [PATCH] Fix the Makefile (and hopefully the OS X Makefile as well) after the talkfile commit and let talkfile.cpp build on non-Windows. Also fix incorrect meaning of DESTDIR in the Makefile. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13912 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/Makefile | 8 ++++---- rbutil/Makefile.macosx | 2 +- rbutil/talkfile.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rbutil/Makefile b/rbutil/Makefile index 9321ed8ed..fe3b5b74a 100644 --- a/rbutil/Makefile +++ b/rbutil/Makefile @@ -18,7 +18,7 @@ CXX=$(shell $(PREFIX)wx-config --version=2.8 --cxx) INC = `$(PREFIX)wx-config --version=2.8 --cxxflags` LIBS = `$(PREFIX)wx-config --version=2.8 --libs` CFLAGS= -Wall -Wundef -DRBUTIL -D_LARGEFILE64_SOURCE -OBJS=rbutil.o rbutilApp.o rbutilFrm.o rbutilCtrls.o install_dialogs.o bootloaders.o installlog.o ipodpatcher/ipodpatcher.o sansapatcher/sansapatcher.o irivertools.o md5sum.o autodetection.o +OBJS=rbutil.o rbutilApp.o rbutilFrm.o rbutilCtrls.o install_dialogs.o bootloaders.o installlog.o ipodpatcher/ipodpatcher.o sansapatcher/sansapatcher.o irivertools.o md5sum.o autodetection.o talkfile.o ifdef __CYGWIN__ OBJS+=ipodpatcher/ipodio-win32.o sansapatcher/sansaio-win32.o @@ -32,9 +32,9 @@ EXTRAOBJS = $(wildcard icons/*.o) SILENT = @ -# Install into /usr/local by default +# Install with / as root by default ifndef DESTDIR - DESTDIR=/usr/local + DESTDIR="" endif # type "make WIN=1" for a Windows build using the Debian mingw cross-compiler @@ -75,4 +75,4 @@ clean: .PHONY: install install: - install -D rbutil$(EXT) $(DESTDIR)/bin/rbutil$(EXT) + install -D rbutil$(EXT) $(DESTDIR)/usr/bin/rbutil$(EXT) diff --git a/rbutil/Makefile.macosx b/rbutil/Makefile.macosx index 384bc5631..6939280e1 100755 --- a/rbutil/Makefile.macosx +++ b/rbutil/Makefile.macosx @@ -52,7 +52,7 @@ RBUTIL_OBJECTS = \ rbutil.o rbutilApp.o rbutilFrm.o install_dialogs.o bootloaders.o installlog.o \ rbutilCtrls.o ipodpatcher/ipodpatcher.o ipodpatcher/ipodio-posix.o \ sansapatcher/sansapatcher.o sansapatcher/sansaio-posix.o \ - md5sum.o irivertools.o autodetection.o \ + md5sum.o irivertools.o autodetection.o talkfile.o \ $(__rbutil___win32rc) ### Conditionally set variables: ### diff --git a/rbutil/talkfile.cpp b/rbutil/talkfile.cpp index 869432a8d..345b32780 100644 --- a/rbutil/talkfile.cpp +++ b/rbutil/talkfile.cpp @@ -174,7 +174,7 @@ wxDirTraverseResult TalkTraverser::OnDir(const wxString& dirname) wxArrayString dirs=fname.GetDirs(); wxString toSpeak = dirs[dirs.GetCount()-1]; - wxString filename = dirname + wxT(PATH_SEP "_dirname.talk"); + wxString filename = dirname + wxT("" PATH_SEP "_dirname.talk"); wxString wavname = filename + wxT(".wav"); if(!wxFileExists(filename) || m_talkcreator->m_overwriteTalk) -- 2.11.4.GIT