Skip to content

Commit

Permalink
Merge branch 'fix-unnecessary-remake' of https://github.com/ChenQi198…
Browse files Browse the repository at this point in the history
…9/util-linux

* 'fix-unnecessary-remake' of https://github.com/ChenQi1989/util-linux:
  libsmartcols/src/Makemodule.am: ensure filter-scanner/paser.c file is newer than the .h file
  • Loading branch information
karelzak committed May 27, 2024
2 parents 7a2efe6 + bf751e8 commit 55ca447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsmartcols/src/Makemodule.am
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ $(SCOLS_YACC_STEMP): $(SCOLS_YACC_BASENAME).y
@rm -f $(SCOLS_YACC_STEMP).tmp
@touch -f $(SCOLS_YACC_STEMP).tmp
$(AM_V_YACC) $(BISON) $< --output=${basename $@}.c --defines=${basename $@}.h
@touch -f ${basename $@}.c
@mv -f $(SCOLS_YACC_STEMP).tmp $@

$(SCOLS_YACC_BASENAME).c $(SCOLS_YACC_BASENAME).h: $(SCOLS_YACC_STEMP)
Expand All @@ -69,6 +70,7 @@ $(SCOLS_LEX_STEMP): $(SCOLS_LEX_BASENAME).l
@rm -f $(SCOLS_LEX_STEMP).tmp
@touch -f $(SCOLS_LEX_STEMP).tmp
$(AM_V_GEN) $(FLEX) --header-file=${basename $@}.h --outfile=${basename $@}.c $<
@touch -f ${basename $@}.c
@mv -f $(SCOLS_LEX_STEMP).tmp $@

$(SCOLS_LEX_BASENAME).c $(SCOLS_LEX_BASENAME).h: $(SCOLS_LEX_STEMP)
Expand Down

0 comments on commit 55ca447

Please sign in to comment.