[geary] Update dev Makefile to use meson and ninja.



commit cbfb7d571d0a0b56d26f519be2f620bad8eee290
Author: Michael James Gratton <mike vee net>
Date:   Mon Jan 15 15:16:57 2018 +1100

    Update dev Makefile to use meson and ninja.

 Makefile    |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Makefile.in |   67 --------------------------------------------------
 2 files changed, 78 insertions(+), 67 deletions(-)
---
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a157c28
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,78 @@
+#
+# Copyright 2016 Software Freedom Conservancy Inc.
+#
+
+# This Makefile is for developer convenience, and is optimised for
+# development work, not production. Packagers should invoke meson and
+# ninja directly.
+
+CONFIGURE := meson \
+       --buildtype debug \
+       --warnlevel 3
+MAKE := ninja
+
+BUILD_DIR := build
+BINARIES := geary geary-console geary-mailer
+
+BUILD_BINARIES := \
+       $(BUILD_DIR)/src/geary \
+       $(BUILD_DIR)/src/console/geary-console \
+       $(BUILD_DIR)/src/mailer/geary-mailer
+
+.DEFAULT: all
+
+.PHONY: all
+all: $(BUILD_DIR)
+       @$(MAKE) -C $(BUILD_DIR)
+       @cp $(BUILD_BINARIES) .
+
+$(BUILD_DIR):
+       @$(CONFIGURE) $@
+
+.PHONY: install
+install: $(BUILD_DIR)
+       @$(MAKE) -C $(BUILD_DIR) $@
+
+.PHONY: uninstall
+uninstall: $(BUILD_DIR)
+       @$(MAKE) -C $(BUILD_DIR) $@
+
+.PHONY: geary-pot
+geary-pot: $(BUILD_DIR)
+       @$(MAKE) -C $(BUILD_DIR) $@
+
+# Keep the olde rule For compatibility
+.PHONY: pot_file
+pot_file: geary-pot
+
+.PHONY: clean
+clean: $(BUILD_DIR)
+       @-$(MAKE) -C $(BUILD_DIR) $@
+
+.PHONY: distclean
+distclean:
+       @-rm -rf $(BUILD_DIR)
+       @-rm -rf $(BUILD_BINARIES)
+       @-rm -rf valadoc
+       @-rm -f po/geary.pot
+
+.PHONY: test
+test: $(BUILD_DIR)
+       @$(MAKE) -C $(BUILD_DIR) $@
+
+.PHONY: test-engine
+test-engine: $(BUILD_DIR)
+       cd $(BUILD_DIR) && meson test engine-tests
+
+.PHONY: test-client
+test-client: $(BUILD_DIR)
+       cd $(BUILD_DIR) && meson test client-tests
+
+.PHONY: dist
+dist: tests
+       @$(MAKE) -C $(BUILD_DIR) $@
+       @cp -v $(BUILD_DIR)/meson-dist/*.xz* ..
+
+.PHONY: valadoc
+valadoc: all
+       cp -r $(BUILD_DIR)/src/valadoc .


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]