Makefile
author Damiano Boppart <damiano@pep-security.net>
Fri, 11 Aug 2017 01:05:47 +0200
branchENGINE-228
changeset 1950 94b1fad41c43
parent 1949 8e0514c0ba2d
child 1955 8ec0b81a659f
permissions -rw-r--r--
Add uninstall target for asn.1
     1 # this file is under GNU General Public License v3.0
     2 # see LICENSE.txt
     3 
     4 include Makefile.conf
     5 
     6 # add YML_PATH to the environment of all executed programs
     7 export YML_PATH
     8 
     9 HERE_REL := $(notdir $(CURDIR))
    10 
    11 .PHONY: all
    12 all:
    13 	$(MAKE) -C asn.1 generate
    14 	$(MAKE) -C asn.1
    15 	$(MAKE) -C sync
    16 	$(MAKE) -C src all
    17 
    18 .PHONY: install
    19 install: all
    20 	$(MAKE) -C src install
    21 	$(MAKE) -C asn.1 install
    22 
    23 .PHONY: uninstall
    24 uninstall:
    25 	$(MAKE) -C src uninstall
    26 	$(MAKE) -C asn.1 uninstall
    27 
    28 .PHONY: clean
    29 clean:
    30 	$(MAKE) -C src clean
    31 	$(MAKE) -C test clean
    32 	$(MAKE) -C db clean
    33 	$(MAKE) -C sync clean
    34 	$(MAKE) -C asn.1 clean
    35 
    36 .PHONY: test
    37 test: all
    38 	$(MAKE) -C test test
    39 	$(MAKE) -C test unit_tests
    40 
    41 .PHONY: unit_tests
    42 unit_tests: all
    43 	$(MAKE) -C test unit_tests
    44 
    45 .PHONY: package
    46 package: clean
    47 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    48 
    49 .PHONY: db
    50 db:
    51 	$(MAKE) -C db db