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
vb@1
     1
include Makefile.conf
vb@1
     2
vb@1
     3
all:
vb@637
     4
	$(MAKE) -C asn.1 generate
vb@637
     5
	$(MAKE) -C asn.1
vb@1
     6
	$(MAKE) -C src all
vb@1
     7
vb@364
     8
.PHONY: clean build_test test package install uninstall db
vb@1
     9
vb@637
    10
install: all
vb@1
    11
	$(MAKE) -C src install
vb@1
    12
vb@1
    13
uninstall:
vb@1
    14
	$(MAKE) -C src uninstall
vb@1
    15
vb@1
    16
clean:
vb@1
    17
	$(MAKE) -C src clean
vb@1
    18
	$(MAKE) -C test clean
vb@364
    19
	$(MAKE) -C db clean
vb@637
    20
	$(MAKE) -C asn.1 clean
vb@1
    21
vb@1
    22
test: all
vb@1
    23
	$(MAKE) -C test test
vb@151
    24
	$(MAKE) -C test unit_tests
vb@1
    25
vb@87
    26
unit_tests: all
vb@87
    27
	$(MAKE) -C test unit_tests
vb@55
    28
vb@1
    29
package: clean
vb@37
    30
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    31
vb@364
    32
db:
vb@364
    33
	$(MAKE) -C db db
vb@364
    34
vb@1
    35
windist:
vb@1
    36
ifneq ($(BUILD_FOR),Windoze)
vb@1
    37
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    38
else
vb@1
    39
	make clean
vb@1
    40
	$(MAKE) all
vb@1
    41
	$(MAKE) -C test all
vb@1
    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
vb@1
    43
endif
vb@1
    44