From: Will Estes Date: Thu, 16 Feb 2017 14:27:22 +0000 (-0500) Subject: build: mv scan.c when building dist. X-Git-Tag: v2.6.4~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e820b6015a56552d7f7adb335b5830883d2973c;p=flex build: mv scan.c when building dist. Revert change to copy scan.c when building the distribution archive. Move it instead. This satisfies automake's notions of what should be clean and ensures that the distribution archive contains a just-built copy of scan.c. Fixes #186 --- diff --git a/src/Makefile.am b/src/Makefile.am index b5827ab..c24fcca 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -94,7 +94,7 @@ endif dist-hook: scan.l flex$(EXEEXT) chmod u+w $(distdir)/scan.c && \ ./flex$(EXEEXT) -o scan.c $< && \ - cp scan.c $(distdir) + mv scan.c $(distdir) # make needs to be told to make parse.h so that parallelized runs will # not fail.