def METHOD_NAME(self, pkg, spec, prefix):
    make()
    if "+python" in self.spec:
        make("-C", "python")
    # CPU tests
    if "+tests" in self.spec:
        with working_dir("tests"):
            make("gtest")
            make("tests")
    # GPU tests
    if "+tests+cuda" in self.spec:
        with working_dir(os.path.join("gpu", "test")):
            make("gtest")
            make("build")  # target added by the patch
            make("demo_ivfpq_indexing_gpu")