1 |
commit: 37415c314cd0bbbc07f7f43b3364abed2cb641d3 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 11 11:26:52 2020 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 11 11:26:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=37415c31 |
7 |
|
8 |
Makefile: Remove quirks necessary for installing in-place. |
9 |
|
10 |
Now that infra installs into a separate target directory, we no longer |
11 |
need atomicity during the build. Remove the delete-old rule as well, |
12 |
which was intended for the same purpose. |
13 |
|
14 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
15 |
|
16 |
Makefile | 14 +++----------- |
17 |
1 file changed, 3 insertions(+), 11 deletions(-) |
18 |
|
19 |
diff --git a/Makefile b/Makefile |
20 |
index d8e3547..b93a85e 100644 |
21 |
--- a/Makefile |
22 |
+++ b/Makefile |
23 |
@@ -41,8 +41,7 @@ build: $(HTMLS) $(IMAGES) |
24 |
# document in devmanual gets a unique ID, which is used to |
25 |
# quickly tie search matches to the corresponding documents. |
26 |
documents.js: bin/build_search_documents.py $(XMLS) |
27 |
- ./bin/build_search_documents.py $(XMLS) > _documents.js |
28 |
- mv _documents.js documents.js |
29 |
+ ./bin/build_search_documents.py $(XMLS) > $@ |
30 |
|
31 |
%.png : %.svg |
32 |
rsvg-convert --output=$@ $< |
33 |
@@ -89,14 +88,7 @@ tidy: $(HTMLS) $(ECLASS_HTMLS) |
34 |
test $${status} -eq 0 && echo "tidy validation successful"; \ |
35 |
exit $${status} |
36 |
|
37 |
-# Delete any orphaned html and image files that could be left over |
38 |
-# after the corresponding source file was moved or removed. |
39 |
-delete-old: |
40 |
- @-rm -f $(filter-out $(HTMLS) $(ECLASS_HTMLS) $(IMAGES), \ |
41 |
- $(filter %/index.html %.png,$(ALL_FILES))) |
42 |
- @find . ! -path './.git*' -type d -empty -delete |
43 |
- |
44 |
clean: |
45 |
- @rm -f $(HTMLS) $(IMAGES) _documents.js documents.js |
46 |
+ @rm -f $(HTMLS) $(IMAGES) documents.js |
47 |
|
48 |
-.PHONY: all prereq build install validate tidy delete-old clean |
49 |
+.PHONY: all prereq build install validate tidy clean |