comparison Makefile @ 96:074873a47447

* Apply DESTDIR patch from Alexis Ballier <aballier@gentoo.org>
author cannam
date Sun, 18 Nov 2007 10:46:28 +0000
parents 70bcd0b62cba
children fe31e6aed666
comparison
equal deleted inserted replaced
95:cd4425ab7b98 96:074873a47447
210 210
211 distclean: clean 211 distclean: clean
212 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~ 212 rm -f $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) *~ */*~
213 213
214 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET) 214 install: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) $(PLUGIN_TARGET) $(HOST_TARGET)
215 mkdir -p $(INSTALL_API_HEADERS) 215 mkdir -p $(DESTDIR)$(INSTALL_API_HEADERS)
216 mkdir -p $(INSTALL_SDK_HEADERS) 216 mkdir -p $(DESTDIR)$(INSTALL_SDK_HEADERS)
217 mkdir -p $(INSTALL_HOSTEXT_HEADERS) 217 mkdir -p $(DESTDIR)$(INSTALL_HOSTEXT_HEADERS)
218 mkdir -p $(INSTALL_SDK_LIBS) 218 mkdir -p $(DESTDIR)$(INSTALL_SDK_LIBS)
219 mkdir -p $(INSTALL_PKGCONFIG) 219 mkdir -p $(DESTDIR)$(INSTALL_PKGCONFIG)
220 cp $(API_HEADERS) $(INSTALL_API_HEADERS) 220 cp $(API_HEADERS) $(DESTDIR)$(INSTALL_API_HEADERS)
221 cp $(SDK_HEADERS) $(INSTALL_SDK_HEADERS) 221 cp $(SDK_HEADERS) $(DESTDIR)$(INSTALL_SDK_HEADERS)
222 cp $(HOSTSDK_HEADERS) $(INSTALL_SDK_HEADERS) 222 cp $(HOSTSDK_HEADERS) $(DESTDIR)$(INSTALL_SDK_HEADERS)
223 cp $(HOSTEXT_HEADERS) $(INSTALL_HOSTEXT_HEADERS) 223 cp $(HOSTEXT_HEADERS) $(DESTDIR)$(INSTALL_HOSTEXT_HEADERS)
224 cp $(SDK_STATIC) $(INSTALL_SDK_LIBS) 224 cp $(SDK_STATIC) $(DESTDIR)$(INSTALL_SDK_LIBS)
225 cp $(HOSTSDK_STATIC) $(INSTALL_SDK_LIBS) 225 cp $(HOSTSDK_STATIC) $(DESTDIR)$(INSTALL_SDK_LIBS)
226 cp $(SDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LIBNAME) 226 cp $(SDK_DYNAMIC) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LIBNAME)
227 cp $(HOSTSDK_DYNAMIC) $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LIBNAME) 227 cp $(HOSTSDK_DYNAMIC) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LIBNAME)
228 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI) 228 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
229 ln -s $(INSTALL_SDK_LIBNAME) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI) 229 ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
230 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI) 230 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
231 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI) 231 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
232 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV) 232 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
233 ln -s $(INSTALL_SDK_LIBNAME) $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV) 233 ln -s $(INSTALL_SDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_DEV)
234 rm -f $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV) 234 rm -f $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
235 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV) 235 ln -s $(INSTALL_HOSTSDK_LIBNAME) $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_DEV)
236 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(APIDIR)/vamp.pc.in \ 236 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(APIDIR)/vamp.pc.in \
237 > $(INSTALL_PKGCONFIG)/vamp.pc 237 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp.pc
238 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-sdk.pc.in \ 238 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-sdk.pc.in \
239 > $(INSTALL_PKGCONFIG)/vamp-sdk.pc 239 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-sdk.pc
240 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-hostsdk.pc.in \ 240 sed "s,%PREFIX%,$(INSTALL_PREFIX)," $(SDKDIR)/vamp-hostsdk.pc.in \
241 > $(INSTALL_PKGCONFIG)/vamp-hostsdk.pc 241 > $(DESTDIR)$(INSTALL_PKGCONFIG)/vamp-hostsdk.pc
242 sed -e "s,%LIBNAME%,$(INSTALL_SDK_LIBNAME),g" \ 242 sed -e "s,%LIBNAME%,$(INSTALL_SDK_LIBNAME),g" \
243 -e "s,%LINK_ABI%,$(INSTALL_SDK_LINK_ABI),g" \ 243 -e "s,%LINK_ABI%,$(INSTALL_SDK_LINK_ABI),g" \
244 -e "s,%LINK_DEV%,$(INSTALL_SDK_LINK_DEV),g" \ 244 -e "s,%LINK_DEV%,$(INSTALL_SDK_LINK_DEV),g" \
245 -e "s,%STATIC%,$(INSTALL_SDK_STATIC),g" \ 245 -e "s,%STATIC%,$(INSTALL_SDK_STATIC),g" \
246 -e "s,%LIBS%,$(INSTALL_SDK_LIBS),g" $(SDK_LA).in \ 246 -e "s,%LIBS%,$(INSTALL_SDK_LIBS),g" $(SDK_LA).in \
247 > $(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LA) 247 > $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LA)
248 sed -e "s,%LIBNAME%,$(INSTALL_HOSTSDK_LIBNAME),g" \ 248 sed -e "s,%LIBNAME%,$(INSTALL_HOSTSDK_LIBNAME),g" \
249 -e "s,%LINK_ABI%,$(INSTALL_HOSTSDK_LINK_ABI),g" \ 249 -e "s,%LINK_ABI%,$(INSTALL_HOSTSDK_LINK_ABI),g" \
250 -e "s,%LINK_DEV%,$(INSTALL_HOSTSDK_LINK_DEV),g" \ 250 -e "s,%LINK_DEV%,$(INSTALL_HOSTSDK_LINK_DEV),g" \
251 -e "s,%STATIC%,$(INSTALL_HOSTSDK_STATIC),g" \ 251 -e "s,%STATIC%,$(INSTALL_HOSTSDK_STATIC),g" \
252 -e "s,%LIBS%,$(INSTALL_SDK_LIBS),g" $(HOSTSDK_LA).in \ 252 -e "s,%LIBS%,$(INSTALL_SDK_LIBS),g" $(HOSTSDK_LA).in \
253 > $(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LA) 253 > $(DESTDIR)$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LA)
254 254