Makefile
author Volker Birk <vb@pep-project.org>
Sat, 09 Jul 2016 11:43:51 +0200
changeset 810 0c07d4583315
parent 742 f30c0071ef5c
child 878 9ab0833d2c8b
permissions -rw-r--r--
completing renaming
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@810
    21
	$(MAKE) -C sync clean
vb@637
    22
	$(MAKE) -C asn.1 clean
vb@1
    23
vb@1
    24
test: all
vb@1
    25
	$(MAKE) -C test test
vb@151
    26
	$(MAKE) -C test unit_tests
vb@1
    27
vb@87
    28
unit_tests: all
vb@87
    29
	$(MAKE) -C test unit_tests
vb@55
    30
vb@1
    31
package: clean
vb@37
    32
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    33
vb@364
    34
db:
vb@364
    35
	$(MAKE) -C db db
vb@364
    36
vb@1
    37
windist:
vb@1
    38
ifneq ($(BUILD_FOR),Windoze)
vb@1
    39
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    40
else
vb@1
    41
	make clean
vb@1
    42
	$(MAKE) all
vb@1
    43
	$(MAKE) -C test all
vb@1
    44
	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
    45
endif
vb@1
    46