Makefile
author Volker Birk <vb@pep-project.org>
Mon, 05 Oct 2015 02:06:43 +0200
changeset 364 605a4990915c
parent 151 ece2659f90f6
child 637 d93d1fe6a24c
permissions -rw-r--r--
Makefile for system.db
vb@1
     1
include Makefile.conf
vb@1
     2
vb@1
     3
all:
vb@1
     4
	$(MAKE) -C src all
vb@1
     5
vb@364
     6
.PHONY: clean build_test test package install uninstall db
vb@1
     7
vb@1
     8
install:
vb@1
     9
	$(MAKE) -C src install
vb@1
    10
vb@1
    11
uninstall:
vb@1
    12
	$(MAKE) -C src uninstall
vb@1
    13
vb@1
    14
clean:
vb@1
    15
	$(MAKE) -C src clean
vb@1
    16
	$(MAKE) -C test clean
vb@364
    17
	$(MAKE) -C db clean
vb@1
    18
vb@1
    19
test: all
vb@1
    20
	$(MAKE) -C test test
vb@151
    21
	$(MAKE) -C test unit_tests
vb@1
    22
vb@87
    23
unit_tests: all
vb@87
    24
	$(MAKE) -C test unit_tests
vb@55
    25
vb@1
    26
package: clean
vb@37
    27
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    28
vb@364
    29
db:
vb@364
    30
	$(MAKE) -C db db
vb@364
    31
vb@1
    32
windist:
vb@1
    33
ifneq ($(BUILD_FOR),Windoze)
vb@1
    34
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    35
else
vb@1
    36
	make clean
vb@1
    37
	$(MAKE) all
vb@1
    38
	$(MAKE) -C test all
vb@1
    39
	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
    40
endif
vb@1
    41