{"id":196,"date":"2008-08-10T08:16:58","date_gmt":"2008-08-10T16:16:58","guid":{"rendered":"http:\/\/wp.colliertech.org\/cj\/?p=196"},"modified":"2009-03-20T13:42:19","modified_gmt":"2009-03-20T21:42:19","slug":"writing-free-software-part-7-creating-a-working-install-target","status":"publish","type":"post","link":"https:\/\/wp.c9h.org\/cj\/?p=196","title":{"rendered":"Writing Free Software &#8211; Part 7: Creating a working install target"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>This entry will show how to add the bits required for an install target.  There are two pieces that need to be added to the Makefile.am: <\/p>\n<ul>\n<li><i>target<\/i>_DATA, which is a list of files associated with the <i>target<\/i><\/li>\n<li><i>target<\/i>dir, which is the location where the above files will be installed\n<\/ul>\n<h3>Return to the workplace<\/h3>\n<p><code><b>$<\/b> cd ~\/src\/greeting<\/code><\/p>\n<h3>Add the required variables to Makefile.am<\/h3>\n<p><code><b>$<\/b> cat &gt;&gt; Makefile.am<br \/>\nGreeting.exedir = $(prefix)\/lib\/mono\/greeting<br \/>\nGreeting.exe_DATA = Greeting.exe<br \/>\n^D<br \/>\n<b>$<\/b> sudo make install<br \/>\n...<br \/>\n<b>$<\/b> ls \/usr\/local\/lib\/mono\/greeting\/<br \/>\nGreeting.exe<br \/>\n<\/code><\/p>\n<h3>Conclusion<\/h3>\n<p>We now have the bits in place to put Greeting.exe in the correct directory, but no way to execute it.  We&#8217;ll address that in a future post.  Until then, you might be interested in reading through the <a href=\"http:\/\/www.mono-project.com\/Guidelines:Application_Deployment\">application deployment guidelines<\/a><\/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>Introduction This entry will show how to add the bits required for an install target. There are two pieces that need to be added to the Makefile.am: target_DATA, which is a list of files associated with the target targetdir, which is the location where the above files will be installed Return to the workplace $ [&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,188,17,79,7,166],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-autotools","category-c","category-cli","category-debian","category-free-software","category-mono","category-software"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1YDIB-3a","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/196","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=196"}],"version-history":[{"count":3,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":344,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions\/344"}],"wp:attachment":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}