Editing Documentation/Maemo 5 Developer Guide/GNU Build System

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

Warning: This page is 70 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1,129: Line 1,129:
The contents of antigen.sh that is suitable for simple projects: [https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/autoconf-automake/example3/antigen.sh autoconf-automake/example3/antigen.sh]
The contents of antigen.sh that is suitable for simple projects: [https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/autoconf-automake/example3/antigen.sh autoconf-automake/example3/antigen.sh]
-
<source lang="bash">
+
<tt><span>''<span><font color="#9A1900"><nowiki>#!/bin/sh</nowiki></font></span>''</span>
-
#!/bin/sh
+
<span>''<span><font color="#9A1900"><nowiki>#</nowiki></font></span>''</span>
-
#
+
<span>''<span><font color="#9A1900"><nowiki># A utility script to remove all generated files.</nowiki></font></span>''</span>
-
# A utility script to remove all generated files.
+
<span>''<span><font color="#9A1900"><nowiki>#</nowiki></font></span>''</span>
-
#
+
<span>''<span><font color="#9A1900"><nowiki># Running autogen.sh will be required after running this script since</nowiki></font></span>''</span>
-
# Running autogen.sh will be required after running this script since
+
<span>''<span><font color="#9A1900"><nowiki># the 'configure' script will also be removed.</nowiki></font></span>''</span>
-
# the 'configure' script will also be removed.
+
<span>''<span><font color="#9A1900"><nowiki>#</nowiki></font></span>''</span>
-
#
+
<span>''<span><font color="#9A1900"><nowiki># This script is mainly useful when testing autoconf/automake changes</nowiki></font></span>''</span>
-
# This script is mainly useful when testing autoconf/automake changes
+
<span>''<span><font color="#9A1900"><nowiki># and as a part of their development process.</nowiki></font></span>''</span>
-
# and as a part of their development process.
+
<span>''<span><font color="#9A1900"><nowiki># If there's a Makefile, then run the 'distclean' target first (which</nowiki></font></span>''</span>
-
# If there's a Makefile, then run the 'distclean' target first (which
+
<span>''<span><font color="#9A1900"><nowiki># will also remove the Makefile).</nowiki></font></span>''</span>
-
# will also remove the Makefile).
+
<span>'''<span><font color="#0000FF">if</font></span>'''</span> <span>'''<span><font color="#0000FF">test</font></span>'''</span> -f Makefile<span><font color="#990000"><nowiki>;</nowiki></font></span> <span>'''<span><font color="#0000FF">then</font></span>'''</span>
-
if test -f Makefile; then
+
  make distclean
-
  make distclean
+
<span>'''<span><font color="#0000FF">fi</font></span>'''</span>
-
fi
+
<span>''<span><font color="#9A1900"><nowiki># Remove all tar-files (assuming there are some packages).</nowiki></font></span>''</span>
-
# Remove all tar-files (assuming there are some packages).
+
rm -f <span><font color="#990000"><nowiki>*.</nowiki></font></span>tar<span><font color="#990000">.*</font></span> <span><font color="#990000"><nowiki>*.</nowiki></font></span>tgz
-
rm -f *.tar.* *.tgz
+
<span>''<span><font color="#9A1900"><nowiki># Also remove the autotools cache directory.</nowiki></font></span>''</span>
-
# Also remove the autotools cache directory.
+
rm -Rf autom4te<span><font color="#990000">.</font></span>cache
-
rm -Rf autom4te.cache
+
<span>''<span><font color="#9A1900"><nowiki># Remove rest of the generated files.</nowiki></font></span>''</span>
-
# Remove rest of the generated files.
+
rm -f Makefile<span><font color="#990000">.</font></span><span>'''<span><font color="#0000FF">in</font></span>'''</span> aclocal<span><font color="#990000">.</font></span>m4 configure depcomp install-sh missing
-
rm -f Makefile.in aclocal.m4 configure depcomp install-sh missing
+
</tt>
-
</source>
+
=== Integration with Pkg-Config ===
=== Integration with Pkg-Config ===

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: