Makefile: execute a bash command


#1

Hi guys,

usually when I want to run a bash command from my makefile
add a new shell statement immediately after the “all:” target
can i do this with config.make?

I gave it a try but it is executed twice, how can I avoid this?

test:

["data libfmodex.so nod"] <------------------------ 1
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123 
with PKG_CONFIG_LIBDIR=
make[2]: ingresso nella directory "/home/NN/app/nod"
["data libfmodex.so nod"] <------------------------ 2

my config.make:

OF_ROOT = /home/NN/openframeworks/
cmd="$(shell ls bin)"
$(info [${cmd}])

Ciao
Dario


#2

in the end i decided to launch the OF makefile
from a shell script and perform other functions after compiling.