Skip to content

Commit aed9e8b

Browse files
committed
Make links instead of copying
1 parent 4da57d0 commit aed9e8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ clean:
2222
doc-html:
2323
meson compile -C ../../build/sage-distro doc-html
2424
mkdir -p $(SAGE_DOC)
25-
cp -rf ../../build/sage-distro/src/doc/html $(SAGE_DOC)
26-
cp -f ../../build/sage-distro/src/doc/index.html $(SAGE_DOC)
25+
ln -s ../../../../build/sage-distro/src/doc/html $(SAGE_DOC)/html
26+
ln -s ../../../../build/sage-distro/src/doc/index.html $(SAGE_DOC)/index.html
2727
@echo "The html documentation was installed to $(SAGE_DOC)/html."
2828

2929
doc-pdf:
3030
meson compile -C ../../build/sage-distro doc-pdf
3131
mkdir -p $(SAGE_DOC)
32-
cp -rf ../../build/sage-distro/src/doc/pdf $(SAGE_DOC)
32+
ln -s ../../../../build/sage-distro/src/doc/pdf $(SAGE_DOC)/pdf
3333
@echo "The pdf documentation was installed to $(SAGE_DOC)/pdf."
3434

3535
.PHONY: all clean \

0 commit comments

Comments
 (0)