summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Langley <mightyjo@gmail.com>2021-06-09 21:36:20 -0400
committerJoseph Langley <mightyjo@gmail.com>2021-06-09 21:46:01 -0400
commitab783a0b996a91cae2522a7b37edecf142e88f34 (patch)
tree1c090fccf3fdb2182e0e68edbbc922167824afd7
parent50819bb82a87e4e310690ce5a90ab798c50e2093 (diff)
downloadflex-git-ab783a0b996a91cae2522a7b37edecf142e88f34.tar.gz
chore(make): Ensure distcheck cleans up directories.
-rwxr-xr-xsrc/Makefile.am1
-rwxr-xr-xtests/Makefile.am6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index fada4a7..ce21a4d 100755
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -130,6 +130,7 @@ endif
dist-hook: scan.l flex$(EXEEXT)
chmod u+w $(distdir) && \
+ chmod u+w $(distdir)/scan.c && \
./flex$(EXEEXT) -o scan.c $< && \
mv -f scan.c $(distdir)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6ab4844..e9f3f49 100755
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -228,9 +228,9 @@ CLEANFILES = \
dist-hook:
chmod u+w $(distdir) && \
for file in $(CLEANFILES) ; do \
- rm -f $(distdir)/$$file \
- chmod u+w $(distdir)/$$file \
- ; done
+ chmod u+w $(distdir)/$$file 2>/dev/null; \
+ rm -f $(distdir)/$$file; \
+ done
EXTRA_DIST = \
README \