Makefile
author vb
Wed, 04 Mar 2015 10:39:29 +0100
changeset 87 060a95de62a8
parent 55 0569864cb34e
child 151 ece2659f90f6
permissions -rw-r--r--
fixing Makefile
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@1
    20
vb@87
    21
unit_tests: all
vb@87
    22
	$(MAKE) -C test unit_tests
vb@55
    23
vb@1
    24
package: clean
vb@37
    25
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    26
vb@1
    27
windist:
vb@1
    28
ifneq ($(BUILD_FOR),Windoze)
vb@1
    29
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    30
else
vb@1
    31
	make clean
vb@1
    32
	$(MAKE) all
vb@1
    33
	$(MAKE) -C test all
vb@1
    34
	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
    35
endif
vb@1
    36