Skip to content

Commit

Permalink
makes: add uppercase and lowercase shortcuts
Browse files Browse the repository at this point in the history
JIRA: RTOS-519
  • Loading branch information
gerard5 committed Jul 12, 2023
1 parent 7402f76 commit 927d782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions makes/funcs.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
### simple utility/shortcut functions ###

# Converts to upper case
uppercase = $(subst a,A,$(subst b,B,$(subst c,C,$(subst d,D,$(subst e,E,$(subst f,F,$(subst g,G,$(subst h,H,$(subst i,I,$(subst j,J,$(subst k,K,$(subst l,L,$(subst m,M,$(subst n,N,$(subst o,O,$(subst p,P,$(subst q,Q,$(subst r,R,$(subst s,S,$(subst t,T,$(subst u,U,$(subst v,V,$(subst w,W,$(subst x,X,$(subst y,Y,$(subst z,Z,$1))))))))))))))))))))))))))

# Converts to lower case
lowercase = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))

# quick template for adding tests (makes xxx binary from xxx.c with optional libs/dependencies)
# $(eval $(call add_test, NAME [, LIBS][, DEP_LIBS]))
Expand Down

0 comments on commit 927d782

Please sign in to comment.