p≡p engine fork for my own dirty testing of stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.7 KiB

3 years ago
6 years ago
2 years ago
3 years ago
  1. # Copyright 2017, pEp Foundation
  2. # This file is part of pEpEngine
  3. # This file may be used under the terms of the GNU General Public License version 3
  4. # see LICENSE.txt
  5. HERE_REL := $(notdir $(CURDIR))
  6. include Makefile.conf
  7. ifneq ($(wildcard local.conf),)
  8. $(info ================================================)
  9. $(info Overrides in `local.conf` are used.)
  10. $(info ================================================)
  11. endif
  12. ifdef BUILD_CONFIG
  13. $(info ================================================)
  14. $(info Overrides in `$(BUILD_CONFIG)` are used.)
  15. $(info ================================================)
  16. endif
  17. BUILT_IN_MIME=
  18. ifdef PEP_MIME
  19. BUILT_IN_MIME=pepmime
  20. endif
  21. .PHONY: all $(BUILT_IN_MIME) codegen asn1 build install dbinstall uninstall clean tags test package db
  22. build: $(BUILT_IN_MIME) asn1
  23. $(MAKE) -C src
  24. all: build
  25. # `make all` is not for tests, that's what `make test` is for
  26. # $(MAKE) -C test
  27. pepmime:
  28. $(MAKE) -C pEpMIME lib
  29. codegen:
  30. $(MAKE) -C codegen
  31. asn1: codegen
  32. $(MAKE) -C asn.1
  33. install: build
  34. $(MAKE) -C src install
  35. $(MAKE) -C asn.1 install
  36. ifeq ($(BUILT_IN_MIME),pepmime)
  37. $(MAKE) -C pEpMIME install
  38. endif
  39. beinstall:
  40. $(MAKE) -C src beinstall
  41. dbinstall: db
  42. $(MAKE) -C db install
  43. uninstall:
  44. $(MAKE) -C src uninstall
  45. $(MAKE) -C asn.1 uninstall
  46. clean:
  47. $(MAKE) -C src clean
  48. $(MAKE) -C test clean
  49. $(MAKE) -C db clean
  50. $(MAKE) -C asn.1 clean
  51. $(MAKE) -C codegen clean
  52. $(MAKE) -C build-android clean
  53. ifdef PEP_MIME
  54. $(MAKE) -C pEpMIME clean
  55. endif
  56. tags:
  57. $(MAKE) -C asn.1 tags
  58. $(MAKE) -C src tags
  59. test: all
  60. $(MAKE) -C test test
  61. package: clean
  62. cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
  63. db:
  64. $(MAKE) -C db db