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.
vb@1
     1
include Makefile.conf
vb@1
     2
roker@878
     3
# add it to the environment of all executed programs:
roker@878
     4
export YML_PATH
roker@878
     5
roker@878
     6
vb@1
     7
all:
vb@637
     8
	$(MAKE) -C asn.1 generate
vb@637
     9
	$(MAKE) -C asn.1
vb@742
    10
	$(MAKE) -C sync
krista@1178
    11
	$(MAKE) -C mime-parser
vb@1
    12
	$(MAKE) -C src all
vb@1
    13
vb@364
    14
.PHONY: clean build_test test package install uninstall db
vb@1
    15
vb@637
    16
install: all
vb@1
    17
	$(MAKE) -C src install
vb@1
    18
vb@1
    19
uninstall:
vb@1
    20
	$(MAKE) -C src uninstall
vb@1
    21
vb@1
    22
clean:
vb@1
    23
	$(MAKE) -C src clean
vb@1
    24
	$(MAKE) -C test clean
vb@364
    25
	$(MAKE) -C db clean
vb@810
    26
	$(MAKE) -C sync clean
krista@1178
    27
	$(MAKE) -C mime-parser clean
vb@637
    28
	$(MAKE) -C asn.1 clean
vb@1
    29
vb@1
    30
test: all
vb@1
    31
	$(MAKE) -C test test
vb@151
    32
	$(MAKE) -C test unit_tests
vb@1
    33
vb@87
    34
unit_tests: all
vb@87
    35
	$(MAKE) -C test unit_tests
vb@55
    36
vb@1
    37
package: clean
vb@37
    38
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    39
vb@364
    40
db:
vb@364
    41
	$(MAKE) -C db db
vb@364
    42
vb@1
    43
windist:
vb@1
    44
ifneq ($(BUILD_FOR),Windoze)
vb@1
    45
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    46
else
vb@1
    47
	make clean
vb@1
    48
	$(MAKE) all
vb@1
    49
	$(MAKE) -C test all
vb@1
    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
vb@1
    51
endif
vb@1
    52