diff options
Diffstat (limited to 'dev-util/ati-stream-sdk/files/Makefile')
-rw-r--r-- | dev-util/ati-stream-sdk/files/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/dev-util/ati-stream-sdk/files/Makefile b/dev-util/ati-stream-sdk/files/Makefile index ae36468..5396f6f 100644 --- a/dev-util/ati-stream-sdk/files/Makefile +++ b/dev-util/ati-stream-sdk/files/Makefile @@ -12,8 +12,7 @@ MKDIR=mkdir -p ARCH:=x86 BINFILES=bin/x86$(DSUFX)/clc LIBFILES=lib/x86$(DSUFX)/libOpenCL.so lib/x86$(DSUFX)/libatiolc$(SUFX).so lib/x86$(DSUFX)/libGLEW.so lib/gpu/builtins-7xx.bc lib/gpu/builtins-evergreen.bc lib/gpu/builtins-gpucommon.bc lib/x86$(DSUFX)/builtins-x86$(DSUFX).bc -INCDIRS=include/CL include/GL include/OVDecode -INCFILES=include/cal*.h +INCFILES=include/cal*.h include/CL/* include/GL/* include/OVDecode/* ifeq ($(ARCH),amd64) DSUFX=_64 @@ -44,16 +43,12 @@ install: $(INSTALLBIN) "$$f" "$(LIBDIR)$$f1" || exit 1;\ else :; fi;\ done - @list='$(INCDIRS)'; for f in $$list; do\ - if test -d $$f; then\ - f1=`basename $$f`;\ - echo "$(INSTALLDIR) $$f $(INCDIR)$$f1";\ - $(INSTALLDIR) $$f $(INCDIR)$$f1 || exit 1;\ - else :; fi;\ - done @list='$(INCFILES)'; for f in $$list; do\ if test -f $$f; then\ - f1=`basename $$f`;\ + f1=`echo $$f | sed -e 's|include||g'`;\ + base=`basename $$f1`;\ + dir=`echo $$f1 | sed -e "s|$$base||g`;\ + test -z "$(INCDIR)$$dir" || $(MKDIR) "$(INCDIR)$$dir";\ echo "$(INSTALLDAT) $$f $(INCDIR)$$f1";\ $(INSTALLDAT) $$f $(INCDIR)$$f1 || exit 1;\ else :; fi;\ |