<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>grainrigi</author_name>
  <author_url>https://blog.hatena.ne.jp/grainrigi/</author_url>
  <blog_title>グレインの備忘録</blog_title>
  <blog_url>https://grainrigi.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>Linux</anon>
    <anon>C/C++</anon>
  </categories>
  <description>Makefileはうまく書けばコンパイルが自動化できて楽だが、ソースの登録が面倒くさい。 そこで、シェルスクリプトなどを活用して自動でMakefileを書いてみる。 （autoconfとかを使ってもいいのだけど、小規模なプログラムでいちいちconfigureするのも面倒だし。） まずはベタ書き 以下のようなシチュエーションを考える。(treeで出力したディレクトリ構造) . ├── Makefile ├── src │ ├── main.cpp (test1_1.h,test2.hをインクルード) │ ├── test1.cpp (test1_1.h,test1_2.hをインクルード) │ ├…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgrainrigi.hatenablog.com%2Fentry%2F2017%2F08%2F27%2F115346&quot; title=&quot;C++用のMakefileを半自動で書く - グレインの備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-08-27 11:53:46</published>
  <title>C++用のMakefileを半自動で書く</title>
  <type>rich</type>
  <url>https://grainrigi.hatenablog.com/entry/2017/08/27/115346</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
