package/rt-tests: simplify PYLIB logic
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 3 Feb 2020 10:09:39 +0000 (11:09 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 3 Feb 2020 10:10:48 +0000 (11:10 +0100)
No functional change, but improves readability.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/rt-tests/rt-tests.mk

index 431c01768898be672ab770064ccfdc59764ba2c1..abc32f4fb22a104aec7088e077eea51439b3ab9a 100644 (file)
@@ -25,7 +25,7 @@ define RT_TESTS_INSTALL_TARGET_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
                DESTDIR="$(TARGET_DIR)" \
                prefix=/usr \
-               $(if $(BR2_PACKAGE_PYTHON3),PYLIB=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/,PYLIB="") \
+               PYLIB="$(if $(BR2_PACKAGE_PYTHON3),/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/)" \
                install
 endef