Skip to content

Commit c9f17cf

Browse files
author
Santhosh Ramani
committed
Fix compilation issue - Install test only if built
1 parent 549d956 commit c9f17cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/playready4/playready4.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ PLAYREADY4_DATA_DIR=/etc/playready
4242

4343
define PLAYREADY4_INSTALL
4444
$(INSTALL) -d $(1)/usr/lib
45-
$(INSTALL) -D -m 0755 $(@D)/bin/exe/prdy_test.exe $(1)/usr/bin/prdy_test.exe
4645
$(INSTALL) -D -m 0755 $(@D)/bin/lib/libplayready.so $(1)/usr/lib/libplayready.so
4746

47+
test -f $(@D)/bin/exe/prdy_test.exe && \
48+
$(INSTALL) -D -m 0755 $(@D)/bin/exe/prdy_test.exe $(1)/usr/bin/prdy_test.exe
49+
4850
$(INSTALL) -d $(1)$(PLAYREADY4_DATA_DIR)
4951
endef
5052

0 commit comments

Comments
 (0)