shell script in makefile

Hi,
Can we execute a shell script by makefile.
I mean we will write a shell script in a make file and it will be executed when we compile the C++ program using make file.

This is a simple minded example.
suppose you have a script that is in the PATH called wildcard that finds all file with a given substring

LIST_ALL= $(wildcard *CDU*) 

# to execute the script
$(LIST_ALL)

Be aware that make invokes /bin/sh which on some systems is not a great choice.

Hi Jim,

you might have meant it like here:
CM Crossroads

e. g.

FILE_COUNT = $(shell ls | wc -l )

The list of other built-in functios is here:
Introduction to making Makefiles