Skip to content
Snippets Groups Projects
Commit 3e232094 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix parallel make

parent 89637ce4
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,12 @@ obj/makefile: ...@@ -48,7 +48,12 @@ obj/makefile:
echo " cp makefile \$$@" >> $@ echo " cp makefile \$$@" >> $@
echo "" >> $@ echo "" >> $@
echo "%/: FORCE | %/makefile" >> $@ echo "%/: FORCE | %/makefile" >> $@
echo " \$$(MAKE) -C \$$@ SRCDIR=\$$(SRCDIR)\$$(notdir \$$(patsubst %/, %, \$$@))/ DEPTH=\$$(DEPTH)../" >> $@ echo " @accesstime=\`stat -c %Y \$$@\`; \\" >> $@
echo " \$$(MAKE) -C \$$@ SRCDIR=\$$(SRCDIR)\$$(notdir \$$(patsubst %/, %, \$$@))/ DEPTH=\$$(DEPTH)../; \\" >> $@
echo " accesstime2=\`stat -c %Y \$$@\`; \\" >> $@
echo " if [ "\$$\$$accesstime" -ne "\$$\$$accesstime2" ]; then \\" >> $@
echo " touch .; \\" >> $@
echo " fi" >> $@
echo "" >> $@ echo "" >> $@
echo "FORCE:" >> $@ echo "FORCE:" >> $@
echo "" >> $@ echo "" >> $@
...@@ -98,7 +103,12 @@ test-obj/makefile: ...@@ -98,7 +103,12 @@ test-obj/makefile:
echo " cp makefile \$$@" >> $@ echo " cp makefile \$$@" >> $@
echo "" >> $@ echo "" >> $@
echo "%/: FORCE | %/makefile" >> $@ echo "%/: FORCE | %/makefile" >> $@
echo " \$$(MAKE) -C \$$@ SRCDIR=\$$(SRCDIR)\$$(notdir \$$(patsubst %/, %, \$$@))/ DEPTH=\$$(DEPTH)../" >> $@ echo " @accesstime=\`stat -c %Y \$$@\`; \\" >> $@
echo " \$$(MAKE) -C \$$@ SRCDIR=\$$(SRCDIR)\$$(notdir \$$(patsubst %/, %, \$$@))/ DEPTH=\$$(DEPTH)../; \\" >> $@
echo " accesstime2=\`stat -c %Y \$$@\`; \\" >> $@
echo " if [ "\$$\$$accesstime" -ne "\$$\$$accesstime2" ]; then \\" >> $@
echo " touch .; \\" >> $@
echo " fi" >> $@
echo "" >> $@ echo "" >> $@
echo "FORCE:" >> $@ echo "FORCE:" >> $@
echo "" >> $@ echo "" >> $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment