示例§
任务名:前提条件
步骤
# Makefile example
#
all: main test
main: main.cpp student.cpp
g++ -o main main.cpp student.cpp
test: student.cpp student_test.cpp
g++ -o test student.cpp student_test.cpp
clean:
rm -rf *.o main test
make -f
指定Makefile的名字。
@rm -rf *.o main test
@符号起执行时不输出信息的作用。