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.
pEpEngine/Makefile

64 lines
1.3 KiB

# Copyright 2017, pEp Foundation
# This file is part of pEpEngine
# This file may be used under the terms of the GNU General Public License version 3
# see LICENSE.txt
HERE_REL := $(notdir $(CURDIR))
include Makefile.conf
# YML_PATH is needed in the environment of every call to a program of the YML2 distribution
export YML_PATH=$(YML2_PATH)
.PHONY: all
all: _platform_override_info
$(MAKE) -C asn.1 generate
$(MAKE) -C asn.1
$(MAKE) -C sync
$(MAKE) -C src all
.PHONY: install
install: all
$(MAKE) -C src install
$(MAKE) -C asn.1 install
.PHONY: uninstall
uninstall:
$(MAKE) -C src uninstall
$(MAKE) -C asn.1 uninstall
.PHONY: clean
clean:
$(MAKE) -C src clean
$(MAKE) -C test clean
$(MAKE) -C db clean
$(MAKE) -C sync clean
$(MAKE) -C asn.1 clean
.PHONY: test
test: all
$(MAKE) -C test test
$(MAKE) -C test unit_tests
.PHONY: unit_tests
unit_tests: all
$(MAKE) -C test unit_tests
.PHONY: package
package: clean
cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
.PHONY: db
db:
$(MAKE) -C db db
.PHONY: _platform_override
ifdef PLATFORM_OVERRIDE
_platform_override_info:
@echo "================================================"
@echo "PLATFORM_OVERRIDE is set to '$(PLATFORM_OVERRIDE)'."
@echo "================================================"
else
_platform_override_info:
endif