Makefile 906 B

123456789101112131415161718192021222324252627282930313233343536
  1. SRCDIR = ltp-master
  2. BUILDDIR = opt/ltp
  3. TESTCASEDIR = $(BUILDDIR)/testcases/bin
  4. target = $(BUILDDIR)/bin/run_in_graphene.awk $(TESTCASEDIR)/pal_loader $(TESTCASEDIR)/manifest
  5. exec_target =
  6. clean-extra = clean-build
  7. level = ../../
  8. include ../../Makefile
  9. master.zip:
  10. wget https://github.com/linux-test-project/ltp/archive/master.zip
  11. $(SRCDIR)/configure: master.zip
  12. unzip master.zip
  13. cd $(SRCDIR) && make autotools
  14. $(BUILDDIR)/runltp: $(SRCDIR)/configure
  15. cd $(SRCDIR) && ./configure
  16. cd $(SRCDIR) && make all
  17. cd $(SRCDIR) && make "DESTDIR=$(PWD)" SKIP_IDCHECK=1 install
  18. patch -d $(dir $@) < runltp.patch
  19. $(BUILDDIR)/bin/run_in_graphene.awk: run_in_graphene.awk $(BUILDDIR)/runltp
  20. cp -f $< $@
  21. $(TESTCASEDIR)/pal_loader: $(BUILDDIR)/runltp
  22. ln -sf $(call relative-to,$(dir $@),../../pal_loader) $@
  23. $(TESTCASEDIR)/manifest.template: manifest.template
  24. cp -f $< $@
  25. clean-build:
  26. rm -rf $(BUILDDIR)