From: Explorer09 Date: Mon, 12 Mar 2018 02:10:41 +0000 (+0800) Subject: build: Fix makefile dist-hook directory permissions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcd8e8b401c264702936eba6db8abef8399684ff;p=flex build: Fix makefile dist-hook directory permissions. Signed-off-by: Kang-Che Sung --- diff --git a/src/Makefile.am b/src/Makefile.am index fb4c485..ab71e27 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -109,7 +109,7 @@ stage1scan.c: scan.c endif dist-hook: scan.l flex$(EXEEXT) - chmod u+w $(distdir)/scan.c && \ + chmod u+w $(distdir) && \ ./flex$(EXEEXT) -o scan.c $< && \ mv scan.c $(distdir) diff --git a/tests/Makefile.am b/tests/Makefile.am index 4f3cd2c..65f9d65 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -265,6 +265,7 @@ CLEANFILES = \ $(tableopts_tables) dist-hook: + chmod u+w $(distdir) && \ for file in $(CLEANFILES) ; do \ rm -f $(distdir)/$$file \ ; done