]> granicus.if.org Git - flex/commitdiff
build: mv scan.c when building dist.
authorWill Estes <westes575@gmail.com>
Thu, 16 Feb 2017 14:27:22 +0000 (09:27 -0500)
committerWill Estes <westes575@gmail.com>
Thu, 16 Feb 2017 14:27:22 +0000 (09:27 -0500)
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

src/Makefile.am

index b5827ab993b1a3c18c0e5ee57370b6278d0672ee..c24fccae179ea33e32775d9ce942e2b3945f8722 100644 (file)
@@ -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.