{"id":287,"date":"2022-07-06T15:32:57","date_gmt":"2023-10-26T08:50:10","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/"},"modified":"2025-07-31T22:20:58","modified_gmt":"2025-07-31T13:20:58","slug":"%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","title":{"rendered":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<h3>\u3053\u306e\u6587\u7ae0\u306f\u3001\u300c\u306f\u3058\u3081\u306b\u300d\u3068\u3044\u3046\u624b\u7d19\u306e\u3054\u6328\u62f6\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/h3>\n<p>\u3082\u3057\u3082\u3042\u306a\u305f\u304cLinux\u30b5\u30fc\u30d0\u30fc\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u7d4c\u9a13\u304c\u3042\u308b\u306a\u3089\u3070\u3001\u304a\u305d\u3089\u304fmake\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306b\u51fa\u304f\u308f\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u4e3b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u4f5c\u8005\u304c\u3001\u305d\u306e\u7279\u5b9a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u624b\u9806\u3092\u793a\u3059\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cmake\u300d\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306b\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u30c4\u30fc\u30eb\u306f\u67d4\u8edf\u306b\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u5b9f\u884c\u53ef\u80fd\u306a\u307b\u3068\u3093\u3069\u306e\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001make\u3092\u4f7f\u7528\u3057\u3066\u9023\u7d9a\u7684\u306b\u767a\u751f\u3059\u308b\u7e70\u308a\u8fd4\u3057\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u3069\u306e\u7a2e\u985e\u306eLinux\u74b0\u5883\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u306f\u3001Ubuntu\/Debian Linux\u3068Red Hat\/Rocky Linux\u306e\u4e21\u65b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Make\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u307b\u3068\u3093\u3069\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5358\u4e00\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>Ubuntu\u3067\u306f\u3001\u73fe\u4ee3\u7684\u3067\u3088\u304f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30b3\u30f3\u30d1\u30a4\u30e9\u74b0\u5883\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u63d0\u4f9b\u3059\u308bbuild-essential\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30fc\u30b9\u3092\u66f4\u65b0\u3057\u3001apt\u3092\u4f7f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> build-essential<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Rocky Linux\u3084\u4ed6\u306eRed Hat\u306e\u6d3e\u751f\u7248\u3067\u306f\u3001\u540c\u3058\u30b3\u30f3\u30d1\u30a4\u30e9\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u958b\u767a\u30c4\u30fc\u30eb\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002dnf\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">dnf <span class=\"token function\">groups<\/span> mark <span class=\"token function\">install<\/span> <span class=\"token string\">&#8220;Development Tools&#8221;<\/span><\/li>\n<li data-prefix=\"$\">dnf groupinstall <span class=\"token string\">&#8220;Development Tools&#8221;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u30e1\u30a4\u30af\u30b3\u30de\u30f3\u30c9\u306e\u5b58\u5728\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001which\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">which<\/span> <span class=\"token function\">make<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\/usr\/bin\/make<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u901a\u5e38\u306e\u80fd\u529b\u3092\u6301\u3064\u30e1\u30a4\u30af\u306e\u6069\u6075\u3092\u53d7\u3051\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u3092\u624b\u306b\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u306e\u7406\u89e3<\/h2>\n<p>make\u30b3\u30de\u30f3\u30c9\u304c\u6307\u793a\u3092\u53d7\u3051\u53d6\u308b\u4e3b\u8981\u306a\u65b9\u6cd5\u306f\u3001Makefile\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u306b\u56fa\u6709\u306e\u3082\u306e\u3067\u3042\u308a\u3001make\u30b3\u30de\u30f3\u30c9\u306f\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3067\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3057\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u5b9f\u884c\u3059\u308b\u30bf\u30b9\u30af\u306b\u5fdc\u3058\u3066\u3001\u307e\u305f\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u547c\u3073\u51fa\u3059\u306e\u306b\u6700\u3082\u9069\u5207\u306a\u5834\u6240\u3067\u3042\u308b\u30eb\u30fc\u30c8\u306b\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3059\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>Makefile\u5185\u3067\u306f\u3001\u7279\u5b9a\u306e\u5f62\u5f0f\u306b\u5f93\u3044\u307e\u3059\u3002Make\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u30bd\u30fc\u30b9\u3001\u304a\u3088\u3073\u30b3\u30de\u30f3\u30c9\u306e\u6982\u5ff5\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>target: source\r\n    command\r\n<\/code><\/pre>\n<p>\u3053\u306e\u3082\u306e\u306e\u914d\u7f6e\u3068\u5f62\u5f0f\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5404\u69cb\u6210\u8981\u7d20\u306e\u5f62\u5f0f\u3068\u610f\u5473\u3092\u8a71\u3057\u5408\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30bf\u30fc\u30b2\u30c3\u30c8<\/h3>\n<p>\u5bfe\u8c61\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u6307\u5b9a\u3057\u305f\u540d\u524d\u3067\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u306b\u53c2\u7167\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u305d\u308c\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u95a2\u6570\u306b\u4f3c\u305f\u3082\u306e\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5bfe\u8c61\u306f\u5de6\u5074\u306e\u5217\u306b\u914d\u7f6e\u3055\u308c\u3001\u9023\u7d9a\u3057\u305f\u5358\u8a9e\u3067\u3042\u308b\uff08\u30b9\u30da\u30fc\u30b9\u306a\u3057\uff09\u305d\u3057\u3066\u30b3\u30ed\u30f3\uff08:\uff09\u3067\u7d42\u308f\u308b\u3002<\/p>\n<p>Make\u3092\u547c\u3073\u51fa\u3059\u969b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span> <mark>target_name<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001make\u306fMakefile\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u305d\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u95a2\u9023\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30bd\u30fc\u30b9\u306f\u4e00\u3064\u3060\u3051\u5fc5\u8981\u3067\u3059\u3002<\/h3>\n<p>\u30bd\u30fc\u30b9\u306f\u30d5\u30a1\u30a4\u30eb\u3084\u305d\u306e\u4ed6\u306e\u5bfe\u8c61\u7269\u3078\u306e\u53c2\u7167\u3067\u3059\u3002\u305d\u308c\u3089\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u524d\u63d0\u6761\u4ef6\u3084\u4f9d\u5b58\u95a2\u4fc2\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Makefile\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb (Meiku Fairu)<\/div>\n<pre class=\"post-pre\"><code>target1: target2\r\n    target1_command\r\n\r\ntarget2:\r\n    target2_command\r\n<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001target1\u3068\u3044\u3046\u3088\u3046\u306b\u547c\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span> target1<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u304b\u3089\u3001Make\u306fMakefile\u306b\u79fb\u308a\u3001target1\u3068\u3044\u3046\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u691c\u7d22\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u6307\u5b9a\u3055\u308c\u305f\u30bd\u30fc\u30b9\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001target2\u306e\u30bd\u30fc\u30b9\u4f9d\u5b58\u95a2\u4fc2\u3092\u898b\u3064\u3051\u3001\u4e00\u6642\u7684\u306b\u305d\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u304b\u3089\u3001target2\u306b\u30ea\u30b9\u30c8\u3055\u308c\u305f\u30bd\u30fc\u30b9\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30bd\u30fc\u30b9\u304c\u306a\u3044\u5834\u5408\u306f\u3001target2_command\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u3001make\u306ftarget2\u306e\u30b3\u30de\u30f3\u30c9\u30ea\u30b9\u30c8\u306e\u6700\u5f8c\u306b\u5230\u9054\u3057\u3001\u5236\u5fa1\u3092target1\u306b\u623b\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001target1_command\u3092\u5b9f\u884c\u3057\u3001\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u306f\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u5bfe\u8c61\u305d\u306e\u3082\u306e\u3067\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Make \u306f\u30d5\u30a1\u30a4\u30eb\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3001\u524d\u56de\u306e\u547c\u3073\u51fa\u3057\u304b\u3089\u306e\u5909\u66f4\u304c\u3042\u3063\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u304c\u52a0\u3048\u3089\u308c\u305f\u5834\u5408\u306f\u3001\u305d\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u518d\u5b9f\u884c\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u6e80\u305f\u3057\u305f\u3068\u30de\u30fc\u30af\u3057\u3001\u6b21\u306e\u30bd\u30fc\u30b9\u306b\u9032\u307f\u307e\u3059\u3002\u307e\u305f\u306f\u3001\u305d\u306e\u30bd\u30fc\u30b9\u304c\u552f\u4e00\u306e\u5834\u5408\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u8003\u3048\u65b9\u306f\u3001\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u73fe\u5728\u306e\u5bfe\u8c61\u306e\u524d\u306b\u5b9f\u884c\u3055\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u9023\u7d9a\u30bb\u30c3\u30c8\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u5bfe\u8c61\u306e\u5f8c\u306b\u306f\u3001\u30b9\u30da\u30fc\u30b9\u3067\u533a\u5207\u3089\u308c\u305f\u8907\u6570\u306e\u30bd\u30fc\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3046\u3057\u3066\u3001\u8907\u96d1\u306a\u30bf\u30b9\u30af\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u898b\u3048\u3066\u304d\u307e\u3059\u3002<\/p>\n<h3>\u547d\u4ee4<\/h3>\n<p>make\u30b3\u30de\u30f3\u30c9\u304c\u67d4\u8edf\u6027\u3092\u6301\u3064\u7406\u7531\u306f\u3001\u305d\u306e\u69cb\u6587\u306e\u30b3\u30de\u30f3\u30c9\u90e8\u5206\u304c\u975e\u5e38\u306b\u30aa\u30fc\u30d7\u30f3\u30a8\u30f3\u30c9\u3067\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u4e0b\u3067\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4efb\u610f\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5fc5\u8981\u306a\u3060\u3051\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u5ba3\u8a00\u306e\u5f8c\u306e\u884c\u306b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306f\u30bf\u30d6\u6587\u5b57\u30671\u3064\u30a4\u30f3\u30c7\u30f3\u30c8\u3057\u307e\u3059\u3002make\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u65b9\u6cd5\u306b\u67d4\u8edf\u6027\u304c\u3042\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4e00\u822c\u7684\u306b\u306f\u3001\u610f\u56f3\u304c\u8a8d\u8b58\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u5358\u4e00\u306e\u30bf\u30d6\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>Make\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u5b9a\u7fa9\u306e\u4e0b\u306b\u3042\u308b\u5404\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u305f\u884c\u3092\u500b\u5225\u306e\u30b3\u30de\u30f3\u30c9\u3068\u307f\u306a\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u305f\u884c\u3084\u30b3\u30de\u30f3\u30c9\u306f\u3001\u597d\u304d\u306a\u3060\u3051\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Make\u306f\u305d\u308c\u3089\u3092\u4e00\u3064\u305a\u3064\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u524d\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u7570\u306a\u308b\u51e6\u7406\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>-: A dash before a command tells make to not abort if an error is encountered. For instance, this could be useful if you want to execute a command on a file if it is present, and do nothing if it is not.<\/li>\n<li>@: If you lead a command with the @ symbol, the command call itself will not be printed to standard output. This is mainly used just to clean up the output that make produces.<\/li>\n<\/ul>\n<h2>\u8ffd\u52a0\u306e\u6a5f\u80fd (Tsuij\u014d no kin\u014d)<\/h2>\n<p>\u8ffd\u52a0\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001Makefile\u5185\u3067\u3088\u308a\u8907\u96d1\u306a\u30eb\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5909\u6570<\/h3>\n<p>Make\u306f\u5909\u6570\uff08\u307e\u305f\u306f\u30de\u30af\u30ed\uff09\u3092\u8a8d\u8b58\u3057\u3001\u3053\u308c\u3089\u306fmakefile\u5185\u306e\u7f6e\u63db\u7269\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u3067\u5ba3\u8a00\u3059\u308b\u3053\u3068\u304c\u6700\u9069\u3067\u3059\u3002<\/p>\n<p>\u5404\u5909\u6570\u306e\u540d\u524d\u306f\u5b8c\u5168\u306b\u5927\u6587\u5b57\u3067\u8868\u8a18\u3055\u308c\u307e\u3059\u3002\u540d\u524d\u306e\u5f8c\u306b\u30a4\u30b3\u30fc\u30eb\u8a18\u53f7\u304c\u3042\u308a\u3001\u53f3\u5074\u306e\u5024\u306b\u540d\u524d\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\/usr\/bin\u3068\u5b9a\u7fa9\u3057\u305f\u3044\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306bINSTALLDIR=\/usr\/bin\u3068\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5f8c\u534a\u3067\u306f\u3001$(INSTALLDIR) \u306e\u69cb\u6587\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u5834\u6240\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6539\u884c\u3092\u56de\u907f<\/h3>\n<p>\u79c1\u305f\u3061\u304c\u884c\u3048\u308b\u3082\u3046\u4e00\u3064\u306e\u4fbf\u5229\u306a\u3053\u3068\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u8907\u6570\u884c\u306b\u307e\u305f\u304c\u308b\u3053\u3068\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u5404\u30b3\u30de\u30f3\u30c9\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4efb\u610f\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30b7\u30a7\u30eb\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u6539\u884c\u6587\u5b57\u3092\\\u3067\u7d42\u308f\u3089\u305b\u3066\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u3053\u3068\u3082\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>target: source\r\n    command1 arg1 arg2 arg3 arg4 \\\r\n    arg5 arg6\r\n<\/code><\/pre>\n<p>\u3082\u3057if-then\u6587\u306e\u3088\u3046\u306a\u30b7\u30a7\u30eb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u306a\u3089\u3001\u3053\u308c\u306f\u3055\u3089\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a\u300c\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u300d<\/div>\n<pre class=\"post-pre\"><code>target: source\r\n    if [ \"condition_1\" == \"condition_2\" ];\\\r\n    then\\\r\n        command to execute;\\\r\n        another command;\\\r\n    else\\\r\n        alternative command;\\\r\n    fi\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001\u307e\u308b\u30671\u884c\u306e\u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u5b9f\u969b\u30011\u884c\u3067\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u3088\u3046\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u3067\u53ef\u8aad\u6027\u304c\u304b\u306a\u308a\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6539\u884c\u6587\u5b57\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u5834\u5408\u3001\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\uff08\\\uff09\u306e\u5f8c\u306b\u4f59\u5206\u306a\u30b9\u30da\u30fc\u30b9\u3084\u30bf\u30d6\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3067\u306a\u3044\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u898f\u5247<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u306b\u4f7f\u3048\u308b\u8ffd\u52a0\u6a5f\u80fd\u3068\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u63a5\u5c3e\u8f9e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u306b\u57fa\u3065\u3044\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3059\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u4e00\u822c\u7684\u306a\u898f\u5247\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001ImageMagick\u30b9\u30a4\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u3059\u3079\u3066\u306e.jpg\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3057\u3001\u305d\u308c\u3089\u3092.png\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3057\u305f\u3044\u5834\u5408\u3001Makefile\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>.SUFFIXES: .jpg .png\r\n\r\n.jpg.png:\r\n    @echo converting $&lt; to $@\r\n    convert $&lt; $@\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u898b\u308b\u3079\u304d\u3044\u304f\u3064\u304b\u306e\u4e8b\u67c4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306e\u90e8\u5206\u306f\u3001.SUFFIXES: \u5ba3\u8a00\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u63a5\u5c3e\u8f9e\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3059\u3079\u3066\u306e\u63a5\u5c3e\u8f9e\u306b\u3064\u3044\u3066make\u306b\u901a\u77e5\u3057\u307e\u3059\u3002.c\u3084.o\u306a\u3069\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u63a5\u5c3e\u8f9e\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u3053\u306e\u5ba3\u8a00\u3067\u30e9\u30d9\u30eb\u4ed8\u3051\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306e\u90e8\u5206\u306f\u3001\u5b9f\u969b\u306e\u63a5\u5c3e\u8f9e\u30eb\u30fc\u30eb\u306e\u5ba3\u8a00\u3067\u3059\u3002\u3053\u308c\u306f\u3001original_extension.target_extension: \u306e\u5f62\u5f0f\u3092\u53d6\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u5b9f\u969b\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u30012\u756a\u76ee\u306e\u62e1\u5f35\u5b50\u3092\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u306e\u547c\u3073\u51fa\u3057\u306b\u4e00\u81f4\u3057\u30011\u756a\u76ee\u306e\u62e1\u5f35\u5b50\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u305d\u308c\u3089\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u306e\u5834\u5408\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bfile.jpg\u304c\u3042\u308b\u5834\u5408\u3001\u79c1\u305f\u3061\u306fmake\u3068\u3044\u3046\u547c\u3073\u51fa\u3057\u3092\u4f7f\u7528\u3057\u3066file.png\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span> file.png<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8220;.SUFFIXES\u5ba3\u8a00\u3067.png\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3001.png\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30eb\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3067.png\u3092.jpg\u306b\u7f6e\u304d\u63db\u3048\u305f\u30bf\u30fc\u30b2\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u7d9a\u304f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002&#8221;<\/p>\n<p>\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u898f\u5247\u3067\u306f\u3001\u307e\u3060\u7d39\u4ecb\u3055\u308c\u3066\u3044\u306a\u3044\u3044\u304f\u3064\u304b\u306e\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3089\u306f\u3001\u73fe\u5728\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u3069\u306e\u90e8\u5206\u306b\u57fa\u3065\u3044\u3066\u7570\u306a\u308b\u60c5\u5831\u3092\u4ee3\u66ff\u3059\u308b\u305f\u3081\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>$?: This variable contains the list of dependencies for the current target that are more recent than the target. These would be the targets that must be re-done before executing the commands under this target.<\/li>\n<li>$@: This variable is the name of the current target. This allows us to reference the file you are trying to make, even though this rule was matched through a pattern.<\/li>\n<li>$&lt;: This is the name of the current dependency. In the case of suffix rules, this is the name of the file that is used to create the target. In our example, this would contain file.jpg<\/li>\n<li>$*: This file is the name of the current dependency with the matched extension stripped off. Consider this an intermediate stage between the target and source files.<\/li>\n<\/ul>\n<h2>\u5909\u63db\u7528\u306eMakefile\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h2>\n<p>\u79c1\u305f\u3061\u306f\u753b\u50cf\u306e\u64cd\u4f5c\u3092\u884c\u3044\u3001\u305d\u308c\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308bMakefile\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u79c1\u305f\u3061\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u305d\u308c\u3089\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u4e00\u7dd2\u306b\u9032\u3081\u305f\u3044\u5834\u5408\u3001\u59cb\u3081\u308b\u524d\u306bImageMagick\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306f\u753b\u50cf\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Ubuntu\u3084Debian\u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30bd\u30fc\u30b9\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3001apt\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> imagemagick<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Red Hat\u307e\u305f\u306fRocky\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306bepel-release\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u3001\u305d\u306e\u5f8cdnf\u3092\u4f7f\u7528\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">dnf <span class=\"token function\">install<\/span> epel-release<\/li>\n<li data-prefix=\"$\">dnf <span class=\"token function\">install<\/span> ImageMagick<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bMakefile\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> Makefile<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u3001\u79c1\u305f\u3061\u306f\u5909\u63db\u76ee\u6a19\u306e\u5b9f\u65bd\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u3059\u3079\u3066\u306eJPG\u30d5\u30a1\u30a4\u30eb\u3092PNG\u306b\u5909\u63db\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u79c1\u305f\u3061\u306e\u30b5\u30fc\u30d0\u306f\u3001.png\u5f62\u5f0f\u306e\u753b\u50cf\u306e\u307f\u3092\u6271\u3046\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u524d\u306b.jpg\u30d5\u30a1\u30a4\u30eb\u3092.png\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u5b66\u3093\u3060\u3068\u304a\u308a\u3001\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u30eb\u30fc\u30eb\u306f\u3053\u308c\u3092\u884c\u3046\u826f\u3044\u65b9\u6cd5\u3067\u3059\u3002\u307e\u305a\u306f\u3001\u5909\u63db\u3059\u308b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3059\u308b .SUFFIX \u5ba3\u8a00\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002.SUFFIXES: .jpg .png\u3002<\/p>\n<p>\u3042\u3068\u3067\u3001.jpg\u30d5\u30a1\u30a4\u30eb\u3092.png\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u30eb\u30fc\u30eb\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001ImageMagick\u30b9\u30a4\u30fc\u30c8\u306econvert\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002convert\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u3001from_file\u304b\u3089to_file\u3078\u5909\u63db\u3059\u308b\u3068\u3044\u3046\u5f62\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u59cb\u3081\u306b\u3069\u306e\u5f62\u5f0f\u304b\u3089\u59cb\u307e\u308a\u3069\u306e\u5f62\u5f0f\u3067\u7d42\u308f\u308b\u304b\u3092\u6307\u5b9a\u3059\u308b\u63a5\u5c3e\u8f9e\u898f\u5247\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>.SUFFIXES: .jpg .png\r\n\r\n.jpg.png:           ## This is the suffix rule declaration\r\n<\/code><\/pre>\n<p>\u30de\u30c3\u30c1\u3059\u308b\u30eb\u30fc\u30eb\u304c\u3042\u308b\u306e\u3067\u3001\u5b9f\u969b\u306e\u5909\u63db\u30b9\u30c6\u30c3\u30d7\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u4e00\u81f4\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u6b63\u78ba\u306b\u308f\u304b\u3089\u306a\u3044\u305f\u3081\u3001\u5b66\u3093\u3060\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u3092$&lt;\u3068\u3057\u3066\u53c2\u7167\u3057\u3001\u5909\u63db\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u3092$@\u3068\u3057\u3066\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u60c5\u5831\u3092convert\u30b3\u30de\u30f3\u30c9\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u6b21\u306e\u30eb\u30fc\u30eb\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>.SUFFIXES: .jpg .png\r\n\r\n.jpg.png:\r\n    convert $&lt; $@\r\n<\/code><\/pre>\n<p>\u300c\u30a8\u30b3\u30fc\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u5b9f\u884c\u6642\u306b\u4f55\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u304b\u3092\u660e\u793a\u7684\u306b\u4f1d\u3048\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002\u65b0\u3057\u3044\u30b3\u30de\u30f3\u30c9\u306e\u524d\u306b\uff20\u8a18\u53f7\u3068\u65e2\u5b58\u306e\u30b3\u30de\u30f3\u30c9\u3092\u542b\u3081\u308b\u3053\u3068\u3067\u3001\u5b9f\u969b\u306e\u30b3\u30de\u30f3\u30c9\u304c\u51fa\u529b\u3055\u308c\u305a\u306b\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u300d<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>.SUFFIXES: .jpg .png\r\n\r\n.jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bJPG\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u624b\u5143\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3001wget\u3092\u4f7f\u3063\u3066Silicon Cloud\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u30891\u3064\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">wget<\/span> https:\/\/opensource.nyc3.cdn.digitaloceanspaces.com\/attribution\/assets\/PoweredByDO\/DO_Powered_by_Badge_blue.png<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">mv<\/span> DO_Powered_by_Badge_blue.png badge.jpg<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306f\u3001\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u304c\u4eca\u306e\u3068\u3053\u308d\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u30d0\u30c3\u30b8.png\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3092\u8981\u6c42\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span> badge.png<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>converting badge.jpg to badge.png using ImageMagick&#8230; conversion to badge.png successful!<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Make\u306fMakefile\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001.SUFFIXES\u5ba3\u8a00\u3067.png\u3092\u63a2\u3057\u3001\u305d\u308c\u306b\u5408\u81f4\u3059\u308b\u63a5\u5c3e\u8f9e\u30eb\u30fc\u30eb\u306b\u79fb\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30ea\u30b9\u30c8\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/h3>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u304c.png\u5f62\u5f0f\u3067\u4f5c\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u306e\u307f\u3001\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e.jpg\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3089\u3092\u5909\u63db\u3059\u308b\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u5909\u63db\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306e\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u6700\u826f\u306e\u65b9\u6cd5\u306f\u3001JPG_FILES=$(wildcard *.jpg)\u306e\u3088\u3046\u306a\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u6307\u793a\u5b50\u3092\u4f7f\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>JPG_FILES=*.jpg\u306e\u3088\u3046\u306b\u3001bash\u306e\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u5bfe\u8c61\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306b\u306f\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057.jpg\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u5b9f\u969b\u306b\u306f*.jpg\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u5909\u63db\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3057\u307e\u3044\u3001\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u3067\u8aac\u660e\u3057\u305f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u69cb\u6587\u306f\u3001\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e.jpg\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002\u3082\u3057\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u5909\u6570\u306b\u4f55\u3082\u8a2d\u5b9a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3063\u3066\u3044\u308b\u9593\u306b\u3001\u3088\u304f\u3042\u308b .jpg \u30d5\u30a1\u30a4\u30eb\u306e\u308f\u305a\u304b\u306a\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3057\u3088\u3046\u3068\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3089\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306f\u3057\u3070\u3057\u3070 .jpeg \u62e1\u5f35\u5b50\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u62e1\u5f35\u5b50\u3092 .jpg \u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u884c\u3067\u306f\u306a\u304f\u3001\u4ee5\u4e0b\u306e2\u3064\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)     ## Has .jpeg and .jpg files\r\nJPG=$(JPEG:.jpeg=.jpg)            ## Only has .jpg files\r\n<\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u306f\u3001\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e.jpg\u304a\u3088\u3073.jpeg\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3089\u3092JPEG\u3068\u3044\u3046\u5909\u6570\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u7b2c2\u884c\u306f\u3053\u306e\u5909\u6570\u3092\u53c2\u7167\u3057\u3001JPEG\u5909\u6570\u5185\u306e\u62e1\u5f35\u5b50\u304c.jpeg\u3067\u7d42\u308f\u308b\u540d\u524d\u3092\u62e1\u5f35\u5b50\u304c.jpg\u3067\u7d42\u308f\u308b\u540d\u524d\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u540d\u524d\u5909\u63db\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u308c\u306f$(VARNAME:.convert_from=.convert_to)\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u4e8c\u884c\u306e\u7d42\u308f\u308a\u306b\u306f\u3001.jpg\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3092\u542b\u3080\u65b0\u3057\u3044\u5909\u6570JPG\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u306f\u5b9f\u969b\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u3082\u306e\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u306f\u5b9f\u969b\u306b\u306f\u30ea\u30cd\u30fc\u30e0\u304c\u884c\u308f\u308c\u306a\u304b\u3063\u305f\u305f\u3081\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u65b0\u3057\u3044.png\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u306e\u307f\u3053\u306e\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n<\/code><\/pre>\n<p>\u4eca\u3001\u5909\u6570PNG\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30ea\u30b9\u30c8\u306b\u306f\u3001\u5225\u306e\u540d\u524d\u5909\u63db\u3092\u884c\u3063\u305f\u305f\u3081\u3001.png\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u307f\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b.jpg\u307e\u305f\u306f.jpeg\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u3063\u305f\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f7f\u7528\u3055\u308c\u3001\u4f5c\u6210\u3057\u305f\u3044.png\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u9054\u306f\u3001.jpeg\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u3001.SUFFIXES\u5ba3\u8a00\u3068\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u30eb\u30fc\u30eb\u3082\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u3054\u89a7\u306e\u901a\u308a\u3001\u79c1\u305f\u3061\u306f\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u30ea\u30b9\u30c8\u306b.jpeg\u3092\u8ffd\u52a0\u3057\u3001\u3055\u3089\u306b\u30eb\u30fc\u30eb\u306b\u5225\u306e\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u30de\u30c3\u30c1\u3092\u542b\u3081\u307e\u3057\u305f\u3002<\/p>\n<h3>\u76ee\u6a19\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u73fe\u5728\u3001\u79c1\u305f\u3061\u306eMakefile\u306b\u306f\u304b\u306a\u308a\u306e\u91cf\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u3060\u901a\u5e38\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u308c\u3092\u4fee\u6b63\u3057\u3066\u3001PNG\u30ea\u30b9\u30c8\u3092\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u30eb\u30fc\u30eb\u306b\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\n<mark>convert: $(PNG)<\/mark>\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3001\u5fc5\u8981\u3068\u3055\u308c\u308b .png \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u4e00\u89a7\u306b\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u305d\u306e\u5f8c\u3001make \u306f .png \u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3067\u304d\u308b\u65b9\u6cd5\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u63a5\u5c3e\u8f9e\u30eb\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u3001\u79c1\u305f\u3061\u306f\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u3059\u3079\u3066\u306e.jpg\u304a\u3088\u3073.jpeg\u30d5\u30a1\u30a4\u30eb\u3092.png\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span> convert<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5225\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002\u753b\u50cf\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306b\u4e00\u822c\u7684\u306b\u884c\u308f\u308c\u308b\u5225\u306e\u30bf\u30b9\u30af\u306f\u3001\u753b\u50cf\u3092\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u6b63\u3057\u3044\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u753b\u50cf\u3092\u5373\u5ea7\u306b\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u304c\u5fc5\u8981\u3068\u3059\u308b\u65b9\u6cd5\u3067\u3001ImageMagick\u306emogrify\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u4e0a\u3067\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u30a8\u30ea\u30a2\u306f\u5e45500px\u3067\u3059\u3068\u4eee\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30a8\u30ea\u30a2\u306b\u5408\u308f\u305b\u3066\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mogrify <span class=\"token parameter variable\">-resize<\/span> <span class=\"token number\">500<\/span><span class=\"token punctuation\">\\<\/span><span class=\"token operator\">&gt;<\/span> file.png<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30a8\u30ea\u30a2\u306b\u5408\u3046\u3088\u3046\u306b\u3001500px\u4ee5\u4e0a\u306e\u5927\u304d\u3055\u306e\u753b\u50cf\u3092\u30ea\u30b5\u30a4\u30ba\u3057\u307e\u3059\u304c\u3001\u5c0f\u3055\u3044\u753b\u50cf\u306f\u89e6\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u304c\u79c1\u305f\u3061\u304c\u6c42\u3081\u308b\u3082\u306e\u3067\u3059\u3002\u76ee\u6a19\u3068\u3057\u3066\u3001\u6b21\u306e\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>resize: $(PNG)\r\n    @echo resizing file...\r\n    @mogrify -resize 648\\&gt; $(PNG)\r\n    @echo resizing is complete!\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u3053\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\u4f5c\u6210\u30d5\u30a1\u30a4\u30eb\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\nconvert: $(PNG)\r\n\r\n<mark>resize: $(PNG)<\/mark>\r\n    <mark>@echo resizing file...<\/mark>\r\n    <mark>@mogrify -resize 648\\&gt; $(PNG)<\/mark>\r\n    <mark>@echo resizing is complete!<\/mark>\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u4eca\u3001\u3053\u308c\u30892\u3064\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5225\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\n<mark>webify: convert resize<\/mark>\r\n\r\nconvert: $(PNG)\r\n\r\nresize: $(PNG)\r\n    @echo resizing file...\r\n    @mogrify -resize 648\\&gt; $(PNG)\r\n    @echo resizing is complete!\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u969b\u3001resize\u306f\u6697\u9ed9\u7684\u306b\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u6c17\u3065\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u5e38\u306b\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u305f\u3081\u3001\u4e21\u65b9\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u5c06\u6765\u7684\u306b\u306f\u3001convert\u306b\u306f\u3088\u308a\u8a73\u7d30\u306a\u51e6\u7406\u304c\u542b\u307e\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u5316\u306e\u5bfe\u8c61\u306f\u73fe\u5728\u3001\u753b\u50cf\u3092\u5909\u63db\u3057\u3066\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u30a6\u30a7\u30d6\u7528\u306e\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u9759\u7684\u306a\u753b\u50cf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u5909\u63db\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092scp\u306b\u6e21\u3059\u3053\u3068\u3067\u3001\u3053\u308c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3053\u306e\u3088\u3046\u306a\u3082\u306e\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002 (Watashitachi no taagetto wa kono you na mono ni narudeshou.)<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>upload: webify\r\n    scp $(PNG) root@<mark>ip_address<\/mark>:<mark>\/path\/to\/static\/images<\/mark>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u73fe\u5728\u3001\u79c1\u305f\u3061\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\n<mark>upload: webify<\/mark>\r\n    <mark>scp $(PNG) root@ip_address:\/path\/to\/static\/images<\/mark>\r\n\r\nwebify: convert resize\r\n\r\nconvert: $(PNG)\r\n\r\nresize: $(PNG)\r\n    @echo resizing file...\r\n    @mogrify -resize 648\\&gt; $(PNG)\r\n    @echo resizing is complete!\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<h3>\u7247\u4ed8\u3051\u308b (\u304b\u305f\u3065\u3051\u308b)<\/h3>\n<p>\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30ed\u30fc\u30ab\u30eb\u306e.png\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u3001\u30af\u30ea\u30fc\u30cb\u30f3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>clean:\r\n    rm *.png\r\n<\/code><\/pre>\n<p>\u4eca\u3001\u79c1\u305f\u3061\u306f\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001\u3053\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u3001\u4e0a\u90e8\u306b\u5225\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u6700\u3082\u5b8c\u5168\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u3067\u3042\u308a\u3001\u79c1\u305f\u3061\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3057\u305f\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001\u6700\u521d\u306e\u5229\u7528\u53ef\u80fd\u306a\u5bfe\u8c61\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u6163\u7fd2\u306b\u5f93\u3063\u3066\u3001\u305d\u308c\u3092\u3059\u3079\u3066\u547c\u3073\u307e\u3059\u3002<\/p>\n<div>\u30e1\u30a4\u30af\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>JPEG=$(wildcard *.jpg *.jpeg)\r\nJPG=$(JPEG:.jpeg=.jpg)\r\nPNG=$(JPG:.jpg=.png)\r\n.SUFFIXES: .jpg .jpeg .png\r\n\r\nall: upload clean\r\n\r\nupload: webify\r\n    scp $(PNG) root@ip_address:\/path\/to\/static\/images\r\n\r\nwebify: convert resize\r\n\r\nconvert: $(PNG)\r\n\r\nresize: $(PNG)\r\n    @echo resizing file...\r\n    @mogrify -resize 648\\&gt; $(PNG)\r\n    @echo resizing is complete!\r\n\r\nclean:\r\n    rm *.png\r\n\r\n.jpeg.png .jpg.png:\r\n    @echo converting $&lt; to $@ using ImageMagick...\r\n    @convert $&lt; $@\r\n    @echo conversion to $@ successful!\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u6700\u7d42\u7684\u306a\u624b\u7d9a\u304d\u3092\u884c\u3046\u3068\u3001Makefile\u3068.jpg\u307e\u305f\u306f.jpeg\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u3063\u305f\u5834\u5408\u3001\u5f15\u6570\u306a\u3057\u3067make\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3057\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f.png\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">make<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3054\u89a7\u306e\u901a\u308a\u3001\u30bf\u30b9\u30af\u3092\u9023\u7d50\u3057\u305f\u308a\u3001\u7279\u5b9a\u306e\u30dd\u30a4\u30f3\u30c8\u307e\u3067\u624b\u7d9a\u304d\u3092\u9078\u3093\u3060\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u63db\u306e\u307f\u3092\u884c\u3044\u3001\u305d\u308c\u3092\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30db\u30b9\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001webify\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001\u4e00\u822c\u7684\u306bMakefile\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u3088\u304f\u7406\u89e3\u3057\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u3055\u3089\u306b\u5177\u4f53\u7684\u306b\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u624b\u9806\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3068\u3057\u3066Make\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u4e00\u90e8\u306e\u5834\u5408\u306b\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u306e\u304c\u3088\u308a\u52b9\u679c\u7684\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Makefile\u306f\u30d7\u30ed\u30bb\u30b9\u9593\u306e\u69cb\u9020\u5316\u3055\u308c\u305f\u968e\u5c64\u7684\u306a\u95a2\u4fc2\u3092\u8a2d\u5b9a\u3059\u308b\u624b\u6bb5\u3067\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306e\u6d3b\u7528\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u7e70\u308a\u8fd4\u3057\u306e\u30bf\u30b9\u30af\u3092\u3088\u308a\u7ba1\u7406\u3057\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u6587\u7ae0\u306f\u3001\u300c\u306f\u3058\u3081\u306b\u300d\u3068\u3044\u3046\u624b\u7d19\u306e\u3054\u6328\u62f6\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002 \u3082\u3057\u3082\u3042\u306a\u305f\u304cLinux\u30b5\u30fc\u30d0\u30fc\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u7d4c\u9a13\u304c\u3042\u308b\u306a\u3089\u3070\u3001\u304a\u305d\u3089\u304fmake\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306b\u51fa\u304f\u308f\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[16,26],"class_list":["post-287","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-16","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306emakefile\u306e\u4f7f\u3044\u65b9\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\" \/>\n<meta property=\"og:description\" content=\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306emakefile\u306e\u4f7f\u3044\u65b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-26T08:50:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T13:20:58+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"33\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\",\"name\":\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-10-26T08:50:10+00:00\",\"dateModified\":\"2025-07-31T13:20:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud","description":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306emakefile\u306e\u4f7f\u3044\u65b9\/","og_locale":"ja_JP","og_type":"article","og_title":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9","og_description":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306emakefile\u306e\u4f7f\u3044\u65b9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-26T08:50:10+00:00","article_modified_time":"2025-07-31T13:20:58+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"33\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","name":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-10-26T08:50:10+00:00","dateModified":"2025-07-31T13:20:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u53cd\u5fa9\u7684\u306a\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306eMakefile\u306e\u4f7f\u3044\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%8f%8d%e5%be%a9%e7%9a%84%e3%81%aa%e3%82%bf%e3%82%b9%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aemakefile%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":38685,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions\/38685"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}