0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Pi > Geany > Make (Shift + F9) > Makefileの一つ目がビルドされる > デフォルトのターゲット

0
Last updated at Posted at 2018-08-01
動作環境
Raspberry Pi 2 Model B (以下RPi)
Raspbian Jessie
Geany 1.24.1
GNU Make 4.0
gcc (Raspbian 4.9.2-10) 4.9.2

Geanyには「Build」メニューの「Make」(Shift + F9)がある。

下記のMakefileを用意した。

Makefile
RPi_i2c_comm_CLKSTR: RPi_i2c_comm_CLKSTR_180712.c
	gcc -Wall -v RPi_i2c_comm_CLKSTR_180712.c gpio_RPi_180301.c wait_msec_nsec_180301.c i2c_comm_180302.c i2c_gpio_180309.c crc16.cpp -o RPi_i2c_comm_CLKSTR_180712
RPi_i2c_comm: RPi_i2c_comm_180227.c
	gcc -Wall -v RPi_i2c_comm_180227.c gpio_RPi_180301.c wait_msec_nsec_180301.c i2c_comm_180302.c i2c_gpio_180309.c -o RPi_i2c_comm_180227

Geanyの「Make」(Shift + F9)でビルドされたのは「RPi_i2c_comm_CLKSTR」の方だけ。

一つ目のターゲットだけビルドするのかもしれない。
(順番を入れ替えたら、RPi_i2c_comm_180227がビルドされることを確認済)。

教えていただいた事項

@tenmyo さんのコメントにて引数なしのデフォルトターゲットに対するビルドであることが分かりました。

情報感謝です。

0
0
2

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?