Skip to content

Commit

Permalink
vail sur les makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-michel1 committed Dec 6, 2023
1 parent e3bc2e7 commit 35bc3a6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

include Makefile.include

include makefiles/functions.mk
-include makefiles/svn.mk

ifeq ($(CODE_COVERAGE), 1)
CODE_COVERAGE_FLAG=--code_coverage
else
Expand Down
30 changes: 30 additions & 0 deletions makefiles/functions.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
##################################
# Fonctions utiles #
##################################

$(info Functions)

define eq
$(if $(or $(1),$(2)),$(and $(findstring $(1),$(2)),$(findstring $(2),$(1))),1)
endef

define not
$(if $(1),,1)
endef

define lt
$(shell [ $(1) -lt $(2) ] && echo "1")
endef

define le
$(shell [ $(1) -le $(2) ] && echo "1")
endef

define gt
$(shell [ $(1) -gt $(2) ] && echo "1")
endef

define ge
$(shell [ $(1) -ge $(2) ] && echo "1")
endef

0 comments on commit 35bc3a6

Please sign in to comment.