Makefile
author Volker Birk <vb@pep-project.org>
Mon, 16 May 2016 17:53:24 +0200
changeset 637 d93d1fe6a24c
parent 364 605a4990915c
child 742 f30c0071ef5c
permissions -rw-r--r--
test and Make
     1 include Makefile.conf
     2 
     3 all:
     4 	$(MAKE) -C asn.1 generate
     5 	$(MAKE) -C asn.1
     6 	$(MAKE) -C src all
     7 
     8 .PHONY: clean build_test test package install uninstall db
     9 
    10 install: all
    11 	$(MAKE) -C src install
    12 
    13 uninstall:
    14 	$(MAKE) -C src uninstall
    15 
    16 clean:
    17 	$(MAKE) -C src clean
    18 	$(MAKE) -C test clean
    19 	$(MAKE) -C db clean
    20 	$(MAKE) -C asn.1 clean
    21 
    22 test: all
    23 	$(MAKE) -C test test
    24 	$(MAKE) -C test unit_tests
    25 
    26 unit_tests: all
    27 	$(MAKE) -C test unit_tests
    28 
    29 package: clean
    30 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
    31 
    32 db:
    33 	$(MAKE) -C db db
    34 
    35 windist:
    36 ifneq ($(BUILD_FOR),Windoze)
    37 	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
    38 else
    39 	make clean
    40 	$(MAKE) all
    41 	$(MAKE) -C test all
    42 	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
    43 endif
    44