Makefile
author Damiano Boppart <damiano@pep-security.net>
Wed, 12 Jul 2017 18:22:49 +0200
changeset 1919 335cdc692960
parent 1513 e7f7e42385b5
child 1949 8e0514c0ba2d
child 1988 ea7bceda4dc8
permissions -rw-r--r--
Install library that adapters need with "install" target
     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 	$(MAKE) -C asn.1 install
    21 
    22 uninstall:
    23 	$(MAKE) -C src uninstall
    24 
    25 clean:
    26 	$(MAKE) -C src clean
    27 	$(MAKE) -C test clean
    28 	$(MAKE) -C db clean
    29 	$(MAKE) -C sync clean
    30 	$(MAKE) -C asn.1 clean
    31 
    32 test: all
    33 	$(MAKE) -C test test
    34 	$(MAKE) -C test unit_tests
    35 
    36 unit_tests: all
    37 	$(MAKE) -C test unit_tests
    38 
    39 package: clean
    40 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
    41 
    42 db:
    43 	$(MAKE) -C db db
    44 
    45 windist:
    46 ifneq ($(BUILD_FOR),Windoze)
    47 	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
    48 else
    49 	make clean
    50 	$(MAKE) all
    51 	$(MAKE) -C test all
    52 	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
    53 endif
    54