Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 22 Aug 2017 15:57:25 +0200
changeset 1989 d3e5bc4a9854
parent 1988 ea7bceda4dc8
child 1993 efaeadf3e6f0
permissions -rw-r--r--
Keep me away from the default branch. Reverted to 1954:2f1ed8cf6b6f, because though damiano's Makefile changes are sexy, they'll break ppl.
     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