Skip to content

Commit

Permalink
build: fixup: don't define ETAGS_ARGS multiple times
Browse files Browse the repository at this point in the history
* Makefile.am (ETAGS_ARGS): Define to empty, to be updated later.
* bin/local.mk (ETAGS_ARGS): Append to it, rather than re-defining it.
* lib/local.mk (ETAGS_ARGS): Likewise.  Also, do not bother appending
"--lang=perl" once again, as that is already done in 'bin/local.mk'.

Signed-off-by: Stefano Lattarini <[email protected]>
  • Loading branch information
slattarini committed May 6, 2013
1 parent f7932b1 commit fa18cba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ SUBDIRS = . tests man

ACLOCAL_AMFLAGS = -I m4

## All of these will be incrementally updated later, here or in included
## makefile fragments.
ETAGS_ARGS =
MOSTLYCLEANFILES =
CLEANFILES =

Expand Down
2 changes: 1 addition & 1 deletion bin/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ ETAGS_PERL = --lang=perl \
ETAGS_SH = --lang=none --regex='/\($(WORD_REGEXP)\)=/\1/' \
bin/autoconf.in

ETAGS_ARGS = $(ETAGS_PERL) $(ETAGS_SH)
ETAGS_ARGS += $(ETAGS_PERL) $(ETAGS_SH)
4 changes: 2 additions & 2 deletions lib/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

ETAGS_ARGS = $(ETAGS_FOR_AUTOCONF)
ETAGS_ARGS += $(ETAGS_FOR_AUTOCONF)
TAGS_FILES = # Incrementally updated later.

# Additional checks.
Expand All @@ -41,7 +41,7 @@ dist_perllib_DATA = \
lib/Autom4te/XFile.pm

TAGS_FILES += $(dist_perllib_DATA)
ETAGS_ARGS += --lang=perl
# Note: ETAGS_ARGS should have already been extended to handle perl files.

## ------------------------------------------ ##
## Make Autom4te default configuration file. ##
Expand Down

0 comments on commit fa18cba

Please sign in to comment.