Makefile
author Volker Birk <vb@pep-project.org>
Sat, 28 Mar 2015 11:39:05 +0100
changeset 151 ece2659f90f6
parent 87 060a95de62a8
child 364 605a4990915c
permissions -rw-r--r--
even nicer
vb@1
     1
include Makefile.conf
vb@1
     2
vb@1
     3
all:
vb@1
     4
	$(MAKE) -C src all
vb@1
     5
vb@1
     6
.PHONY: clean build_test test package install uninstall
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@1
    17
vb@1
    18
test: all
vb@1
    19
	$(MAKE) -C test test
vb@151
    20
	$(MAKE) -C test unit_tests
vb@1
    21
vb@87
    22
unit_tests: all
vb@87
    23
	$(MAKE) -C test unit_tests
vb@55
    24
vb@1
    25
package: clean
vb@37
    26
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    27
vb@1
    28
windist:
vb@1
    29
ifneq ($(BUILD_FOR),Windoze)
vb@1
    30
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    31
else
vb@1
    32
	make clean
vb@1
    33
	$(MAKE) all
vb@1
    34
	$(MAKE) -C test all
vb@1
    35
	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
    36
endif
vb@1
    37