]> granicus.if.org Git - flex/commitdiff
build: Fix makefile dist-hook directory permissions.
authorExplorer09 <explorer09@gmail.com>
Mon, 12 Mar 2018 02:10:41 +0000 (10:10 +0800)
committerExplorer09 <explorer09@gmail.com>
Mon, 12 Mar 2018 02:15:31 +0000 (10:15 +0800)
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
src/Makefile.am
tests/Makefile.am

index fb4c485f7412dedc6a5154fdb3a764947bc27c9c..ab71e27d78c279e10e223d070e43edb8c9ef9097 100644 (file)
@@ -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)
 
index 4f3cd2c70c516bb45ed59710f75e23f89f64a700..65f9d65a8d0159a736f1064c5357681cfcb6f9f9 100644 (file)
@@ -265,6 +265,7 @@ CLEANFILES = \
        $(tableopts_tables)
 
 dist-hook:
+       chmod u+w $(distdir) && \
        for file in $(CLEANFILES) ; do \
        rm -f $(distdir)/$$file \
        ; done