aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2f6e8992905665402f07b6f4bc72e83457fe7fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# ecgen, tool for generating Elliptic curve domain parameters
# Copyright (C) 2017 J08nY
#

# Default target first
all:
	+$(MAKE) -C lib all
	+$(MAKE) -C src all

clean:
	+$(MAKE) -C src clean

clean-all:
	+$(MAKE) -C lib clean
	+$(MAKE) -C src clean-all
	rm -rf doc/*

docs:
	doxygen Doxyfile

help:
	@echo "ecgen, tool for generating Elliptic curve domain parameters"
	@echo
	@echo "Available targets:"
	@echo " - all : builds all"
	@echo " - ecgen : builds the main binary"
	@echo " - docs : generate doxygen docs"
	@echo " - clean : cleans up after a build"
	@echo " - clean-all : cleans all"
	@echo " - format : run clang-format on source files"
	@echo " - help : print this help"

.PHONY: all docs help

ifeq (, $(filter all clean clean-all docs help, $(MAKECMDGOALS)))
# Just pass all targets to a Makefile in src
$(MAKECMDGOALS):
	+$(MAKE) -C src $@
endif