Makefile
branchENGINE-228
changeset 1949 8e0514c0ba2d
parent 1919 335cdc692960
child 1950 94b1fad41c43
     1.1 --- a/Makefile	Thu Aug 10 18:45:33 2017 +0200
     1.2 +++ b/Makefile	Fri Aug 11 01:02:14 2017 +0200
     1.3 @@ -3,25 +3,28 @@
     1.4  
     1.5  include Makefile.conf
     1.6  
     1.7 -# add it to the environment of all executed programs:
     1.8 +# add YML_PATH to the environment of all executed programs
     1.9  export YML_PATH
    1.10  
    1.11 +HERE_REL := $(notdir $(CURDIR))
    1.12  
    1.13 +.PHONY: all
    1.14  all:
    1.15  	$(MAKE) -C asn.1 generate
    1.16  	$(MAKE) -C asn.1
    1.17  	$(MAKE) -C sync
    1.18  	$(MAKE) -C src all
    1.19  
    1.20 -.PHONY: clean build_test test package install uninstall db
    1.21 -
    1.22 +.PHONY: install
    1.23  install: all
    1.24  	$(MAKE) -C src install
    1.25  	$(MAKE) -C asn.1 install
    1.26  
    1.27 +.PHONY: uninstall
    1.28  uninstall:
    1.29  	$(MAKE) -C src uninstall
    1.30  
    1.31 +.PHONY: clean
    1.32  clean:
    1.33  	$(MAKE) -C src clean
    1.34  	$(MAKE) -C test clean
    1.35 @@ -29,26 +32,19 @@
    1.36  	$(MAKE) -C sync clean
    1.37  	$(MAKE) -C asn.1 clean
    1.38  
    1.39 +.PHONY: test
    1.40  test: all
    1.41  	$(MAKE) -C test test
    1.42  	$(MAKE) -C test unit_tests
    1.43  
    1.44 +.PHONY: unit_tests
    1.45  unit_tests: all
    1.46  	$(MAKE) -C test unit_tests
    1.47  
    1.48 +.PHONY: package
    1.49  package: clean
    1.50 -	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
    1.51 +	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    1.52  
    1.53 +.PHONY: db
    1.54  db:
    1.55  	$(MAKE) -C db db
    1.56 -
    1.57 -windist:
    1.58 -ifneq ($(BUILD_FOR),Windoze)
    1.59 -	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
    1.60 -else
    1.61 -	make clean
    1.62 -	$(MAKE) all
    1.63 -	$(MAKE) -C test all
    1.64 -	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
    1.65 -endif
    1.66 -