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