make

GNU make utility to maintain groups of programs

Define a build graph from bottom-up.

Makefile

OTHER_STR=aaaaa
CURR_DATE=`date -u`

first_target: asd_target
        @echo "first target"

asd_target: other
        @echo "$(OTHER_STR) $(CURR_DATE) "

other:
        @#show the action
        echo "action"

Output:

echo "action"
action
aaaaa Fri  5 Jul 12:38:30 UTC 2019 
first target

make (last edited 2019-07-05 12:40:03 by localhost)