X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian%2Fpatches%2Fmakefile.dpatch;fp=debian%2Fpatches%2Fmakefile.dpatch;h=bce6b8842eef78b3f1e00eda9e5b7bd10d39f8fd;hb=b251a6c0e72f9b77dd4539c6f62b2c065084a5f4;hp=0000000000000000000000000000000000000000;hpb=0f2576733b81da870b541be0e8aa39f84e2a4585;p=msp430-libc.git diff --git a/debian/patches/makefile.dpatch b/debian/patches/makefile.dpatch new file mode 100755 index 0000000..bce6b88 --- /dev/null +++ b/debian/patches/makefile.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## makefile.dpatch by R. Steve McKown +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Don't expect toolchain to be in install prefix. +## DP: Ensure libdir is created. + +@DPATCH@ +diff -urNad msp430-libc~/src/Makefile msp430-libc/src/Makefile +--- msp430-libc~/src/Makefile 2010-05-20 21:07:12.000000000 -0600 ++++ msp430-libc/src/Makefile 2010-05-20 21:07:59.000000000 -0600 +@@ -13,7 +13,9 @@ + target = msp430 + + prefix_target = $(PREFIX)/${target} ++ifndef bindir + bindir = $(PREFIX)/bin ++endif + includedir = ${prefix_target}/include + libdir = ${prefix_target}/lib + +@@ -133,7 +135,7 @@ + ${INSTALL} + + #--------------- directories --------------- +-$(includedir) $(includedir)/sys $(includedir)/msp430: ++$(includedir) $(includedir)/sys $(includedir)/msp430 $(libdir): + $(MD) + #------------------------------------------------------------------------ + #------------------------------------------------------------------------