LoginSignup
4
4

More than 5 years have passed since last update.

共通makefileで存在しているターゲットを上書きしたい

Posted at

普通に上書きするとワーニングが出るので、%を付けるといいそうです。

Common.mk
%clean:
    @rm *.o
Makefile
include Common.mk

clean:
    @rm *.o *.d

くわしくは以下をどうぞ。
参考リンク: Makefileで既にそのtargetが存在しているかで分岐する - Higepon’s blog - Mona OS and Mosh

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4