{"id":192,"date":"2008-08-08T20:17:29","date_gmt":"2008-08-09T04:17:29","guid":{"rendered":"http:\/\/wp.colliertech.org\/cj\/?p=192"},"modified":"2008-08-08T20:17:29","modified_gmt":"2008-08-09T04:17:29","slug":"writing-free-software-part-6-making-a-simple-distribution","status":"publish","type":"post","link":"https:\/\/wp.c9h.org\/cj\/?p=192","title":{"rendered":"Writing Free Software &#8211; Part 6: Making a simple distribution"},"content":{"rendered":"<p>You might remember from a previous post that we&#8217;ve already got a &#8220;dist&#8221; target which creates a tarball of the source.  However, the source doesn&#8217;t include any of the code we wrote, only the files generated by autotools.  In this article, we&#8217;ll make the modifications to the Makefile.am file required to include our source in the dist tarball.<\/p>\n<h3>Return to our workspace<\/h3>\n<p><code><b>$<\/b> cd ~\/src\/greeting<\/code><\/p>\n<h3>Add an EXTRA_DIST automake variable<\/h3>\n<p><code><b>$<\/b> echo \"EXTRA_DIST = Greeting.cs NDesk.Options.cs\" >> Makefile.am<\/code><\/p>\n<h3>Re-build our Makefile<\/h3>\n<p><code><b>$<\/b> .\/configure<\/code><\/p>\n<h3>Test the distdir target<\/h3>\n<p><code><b>$<\/b> make distdir<br \/>\n...<br \/>\n<b>$<\/b> ls greeting-0.0.1<br \/>\nAUTHORS    Greeting.cs  Makefile.in       README      configure.ac<br \/>\nCOPYING    INSTALL      NDesk.Options.cs  aclocal.m4  install-sh<br \/>\nChangeLog  Makefile.am  NEWS              configure   missing<br \/>\n<b>$<\/b> make dist<br \/>\n...<br \/>\n<\/code><\/p>\n<h3>Conclusion<\/h3>\n<p>Another short one.  Sorry for the brevity.  But as you can see, a little bit goes a long way.<\/p>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=cjamescollier\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You might remember from a previous post that we&#8217;ve already got a &#8220;dist&#8221; target which creates a tarball of the source. However, the source doesn&#8217;t include any of the code we wrote, only the files generated by autotools. In this article, we&#8217;ll make the modifications to the Makefile.am file required to include our source in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[180,38,17,79,7,166],"tags":[],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-autotools","category-c","category-debian","category-free-software","category-mono","category-software"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1YDIB-36","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":2,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}