1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz> 3 4top_srcdir ?= .. 5 6include $(top_srcdir)/include/mk/env_pre.mk 7include $(top_srcdir)/include/mk/functions.mk 8 9MAKE_TARGETS := ltp.json 10HOST_MAKE_TARGETS := metaparse 11INSTALL_DIR = metadata 12 13.PHONY: ltp.json 14 15ltp.json: metaparse 16 $(abs_srcdir)/parse.sh > ltp.json 17ifeq ($(WITH_METADATA),yes) 18 mkdir -p $(abs_top_builddir)/docparse 19 $(MAKE) -C $(abs_top_builddir)/docparse/ -f $(abs_top_srcdir)/docparse/Makefile 20endif 21 22ifeq ($(WITH_METADATA),yes) 23install: 24 $(MAKE) -C $(abs_top_builddir)/docparse/ -f $(abs_top_srcdir)/docparse/Makefile install 25endif 26 27test: 28 $(MAKE) -C $(abs_srcdir)/tests/ test 29 30include $(top_srcdir)/include/mk/generic_leaf_target.mk 31