Makefile
author Krista Grothoff <krista@pep-project.org>
Mon, 19 Sep 2016 00:40:37 +0200
branchpeg-mime
changeset 1178 335ac741184f
parent 878 9ab0833d2c8b
permissions -rw-r--r--
file generation and inclusion in engine. still a ways from done.
     1 include Makefile.conf
     2 
     3 # add it to the environment of all executed programs:
     4 export YML_PATH
     5 
     6 
     7 all:
     8 	$(MAKE) -C asn.1 generate
     9 	$(MAKE) -C asn.1
    10 	$(MAKE) -C sync
    11 	$(MAKE) -C mime-parser
    12 	$(MAKE) -C src all
    13 
    14 .PHONY: clean build_test test package install uninstall db
    15 
    16 install: all
    17 	$(MAKE) -C src install
    18 
    19 uninstall:
    20 	$(MAKE) -C src uninstall
    21 
    22 clean:
    23 	$(MAKE) -C src clean
    24 	$(MAKE) -C test clean
    25 	$(MAKE) -C db clean
    26 	$(MAKE) -C sync clean
    27 	$(MAKE) -C mime-parser clean
    28 	$(MAKE) -C asn.1 clean
    29 
    30 test: all
    31 	$(MAKE) -C test test
    32 	$(MAKE) -C test unit_tests
    33 
    34 unit_tests: all
    35 	$(MAKE) -C test unit_tests
    36 
    37 package: clean
    38 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
    39 
    40 db:
    41 	$(MAKE) -C db db
    42 
    43 windist:
    44 ifneq ($(BUILD_FOR),Windoze)
    45 	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
    46 else
    47 	make clean
    48 	$(MAKE) all
    49 	$(MAKE) -C test all
    50 	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
    51 endif
    52