.. _compile:

compile
=======

.. program:: compile

Synopsis
--------

::

    sample-rpkg compile [-h] [--builddir BUILDDIR] [--buildrootdir BUILDROOTDIR] [--arch ARCH] [--define DEFINE] [--short-circuit] [--nocheck] ...

Description
-----------

This command calls rpmbuild to compile the source. By default the prep and configure stages will be done as well, unless the short-circuit option is used.

Arguments
---------

.. option:: extra_args

   Custom arguments that are passed to the 'rpmbuild'. Use '--' to separate them from other arguments.



Options
-------

.. option:: -h --help

   show this help message and exit

.. option:: --builddir

   Define an alternate builddir

.. option:: --buildrootdir

   Define an alternate buildrootdir

.. option:: --arch

   Prep for a specific arch

.. option:: --define

   Pass custom macros to rpmbuild, may specify multiple times

.. option:: --short-circuit

   short-circuit compile

.. option:: --nocheck

   nocheck compile