Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 13 Jun 2017 13:00:37 +0200
branchmessage-2.0
changeset 1855 18dce9e2977a
parent 1513 e7f7e42385b5
child 1919 335cdc692960
permissions -rw-r--r--
merged in default
     1 # this file is under GNU General Public License v3.0
     2 # see LICENSE.txt
     3 
     4 include Makefile.conf
     5 
     6 # add it to the environment of all executed programs:
     7 export YML_PATH
     8 
     9 
    10 all:
    11 	$(MAKE) -C asn.1 generate
    12 	$(MAKE) -C asn.1
    13 	$(MAKE) -C sync
    14 	$(MAKE) -C src all
    15 
    16 .PHONY: clean build_test test package install uninstall db
    17 
    18 install: all
    19 	$(MAKE) -C src install
    20 
    21 uninstall:
    22 	$(MAKE) -C src uninstall
    23 
    24 clean:
    25 	$(MAKE) -C src clean
    26 	$(MAKE) -C test clean
    27 	$(MAKE) -C db clean
    28 	$(MAKE) -C sync clean
    29 	$(MAKE) -C asn.1 clean
    30 
    31 test: all
    32 	$(MAKE) -C test test
    33 	$(MAKE) -C test unit_tests
    34 
    35 unit_tests: all
    36 	$(MAKE) -C test unit_tests
    37 
    38 package: clean
    39 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
    40 
    41 db:
    42 	$(MAKE) -C db db
    43 
    44 windist:
    45 ifneq ($(BUILD_FOR),Windoze)
    46 	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
    47 else
    48 	make clean
    49 	$(MAKE) all
    50 	$(MAKE) -C test all
    51 	zip -j pEpEngine-dist.zip src/pEpEngine.h src/keymanagement.h src/pEpEngine.dll src/pEpEngine.def test/pEpEngineTest.exe test/*.asc test/*.key db/*.db test/*.txt test/*.asc src/*.sql
    52 endif
    53