This introduces a configure script that automates the basic task of setting up a CMake build directory. It also uses a top-level Makefile (which the configure script generates, to prevent running it until configure has executed) which does the build and copies the final executables into the root of the source tree.
29 lines
494 B
Makefile
29 lines
494 B
Makefile
# Makefile.in
|
|
#
|
|
# Copyright 2012 Yorba Foundation
|
|
|
|
BUILD_DIR := build
|
|
BINARIES := geary gearyd geary-console geary-mailer
|
|
|
|
BUILD_BINARIES := $(addprefix $(BUILD_DIR)/,$(BINARIES))
|
|
|
|
.PHONY: all
|
|
all:
|
|
@$(MAKE) -C $(BUILD_DIR)
|
|
@cp $(BUILD_BINARIES) .
|
|
|
|
.PHONY: install uninstall
|
|
install uninstall:
|
|
@$(MAKE) -C $(BUILD_DIR) $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@-$(MAKE) -C $(BUILD_DIR) clean
|
|
@-rm -f $(BINARIES)
|
|
@-rm -f .stamp
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
@-rm -rf $(BUILD_DIR)
|
|
@-rm -f Makefile
|
|
|