Skip to content

Commit

Permalink
[build] Do not repeat autogen & configure every time
Browse files Browse the repository at this point in the history
When doing code tweaking and manual builds with mb script, unconditionally
running autogen and configure leads to unnecessary full rebuilds every time.

Skip autogen and configure steps if they have already been done (based on
the existence of Makefile).

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 24, 2017
1 parent 435effc commit d5c5651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpm/usb-moded.spec
Expand Up @@ -321,8 +321,8 @@ when the UI fails.
%setup -q

%build
%autogen
%configure --enable-app-sync --enable-meegodevlock --enable-debug --enable-connman --enable-systemd --enable-mer-ssu
test -e Makefile || (%autogen)
test -e Makefile || (%configure --enable-app-sync --enable-meegodevlock --enable-debug --enable-connman --enable-systemd --enable-mer-ssu)
make all doc %{?_smp_mflags}

%install
Expand Down

0 comments on commit d5c5651

Please sign in to comment.