Skip to content

Commit

Permalink
Use silent rules instead of nostdinc
Browse files Browse the repository at this point in the history
A nice feature of automake is that it allows a VPATH build. That is,
a build from outside the source tree. This is disabled in uncrustify
via nostdinc in /src/Makefile.am. If the purpose of using nostdinc
is to clean up the output of the build, I recommend using
silent rules instead.
  • Loading branch information
bengardner committed May 28, 2010
1 parent 10ef222 commit d2c438a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS=foreign no-dependencies
AUTOMAKE_OPTIONS=foreign no-dependencies 1.11

SUBDIRS = src man

Expand Down
3 changes: 2 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

AC_PREREQ(2.59)
AC_INIT(uncrustify, 0.56,,,http://uncrustify.sourceforge.net/)
AM_INIT_AUTOMAKE([-Wall])
enable_silent_rules=${enable_silent_rules-yes}
AM_INIT_AUTOMAKE([-Wall silent-rules])
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/uncrustify.cpp])
AC_CONFIG_HEADER([src/config.h])
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AUTOMAKE_OPTIONS = foreign no-dependencies nostdinc
AUTOMAKE_OPTIONS = foreign no-dependencies

DISTCLEANFILES =
CLEANFILES = *.o *~ *.bak
Expand Down

0 comments on commit d2c438a

Please sign in to comment.