天之道 損有餘而補不足 人之道則否則 損不足以奉有餘html
cd ~/Desktop/ && mkdir makefile_demo
cd makefile_demo
Makefilegit
say_hello: echo "Hello Malefile"
make
echo "Hello Malefile" Hello Malefile
Makefilegithub
say_hello: @echo "Hello Malefile"
make
Hello Malefile
Makefilenpm
say_hello: @echo "Hello Malefile" generate: @echo "Create some text file..." touch file-{1..10}.txt clean: @echo "Cleaning up..." rm *.txt
make
Hello Malefile
Makefilesegmentfault
.DEFAULT_GOAL := generate say_hello: @echo "Hello Malefile" generate: @echo "Create some text files..." touch file-{1..10}.txt clean: @echo "Cleaning up..." rm *.txt
make
Create some text files... touch file-{1..10}.txt
Makefile微信
all: say_hello generate say_hello: @echo "Hello Malefile" generate: @echo "Creating some files..." touch file-{1..10}.txt clean: @echo "Cleaning up..." rm *.txt
rm -rf *.txt
make
Hello Malefile Create some files... touch file-{1..10}.txt
Markfileless
.PHONY: all say_hello generate clean all: say_hello generate say_hello: @echo "Hello Malefile" generate: @echo "Creating some files..." touch file-{1..10}.txt clean: @echo "Cleaning up..." rm *.txt