Skip to content

Commit

Permalink
squash: fix the suffix rule for .peg.c
Browse files Browse the repository at this point in the history
Suggested by @b4n and @mqudsi on universal-ctags#1554.
  • Loading branch information
masatake committed Oct 15, 2018
1 parent 9beed62 commit fd101eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ packcc_verbose = $(packcc_verbose_@AM_V@)
packcc_verbose_ = $(packcc_verbose_@AM_DEFAULT_V@)
packcc_verbose_0 = @echo PACKCC " $@";
PACKCC = $(srcdir)/packcc$(EXEEXT)
%.c: %.peg $(PACKCC) Makefile
SUFFIXES += .peg
.peg.c:
$(packcc_verbose)$(PACKCC) $<

# You cannot use $(PACKCC) as a target name here.
$(PEG_INPUT): packcc$(EXEEXT) Makefile
dist_ctags_SOURCES = $(ALL_HEADS) $(ALL_SRCS)

if INSTALL_ETAGS
Expand Down

0 comments on commit fd101eb

Please sign in to comment.