Skip to contentSkip to conversation

Makefile: Fix bug when running in parallel

PATCH Superseded Alejandro Colomar 1 participant 6 messages Mar 20, 2021 – Mar 28, 2021 1 message not in the archive

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/3 Makefile: Fix bug when running in parallel

Prerequisites can run in parallel. This wouldn't make any sense when uninstalling and installing again.

For that, use consecutive commands, which run one after the other even with multiple cores.

Cc Debian man-pages <[email protected]>
Cc "Dr. Tobias Quathamer" <[email protected]>
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
index a7a4ca284..683dd12be 100644
@@ -20,7 +20,9 @@ INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_DIR = $(INSTALL) -m 755 -d
 
 .PHONY: all
-all: remove install
+all:
+	$(MAKE) uninstall;
+	$(MAKE) install;
 
 # Use with
 #  make HTOPTS=whatever html
Signature · 1 line
2.31.0
#2 lore raw

PATCH 3/3 .gitignore: Add file

In reply to a message not in the archive

Ignore:
.html: directory for building html pages. .patches: directory for storing patches before sending

---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitignore
.gitignore new file +2 -0
new file mode 100644
index 000000000..593d39213
@@ -0,0 +1,2 @@
+.html
+.patches
Signature · 1 line
2.31.0
#3 lore raw

PATCH v2 2/3 Makefile: Fix bug when running in parallel

In reply to a message not in the archive

Prerequisites can run in parallel. This wouldn't make any sense when uninstalling and installing again.

For that, use consecutive commands, which run one after the other even with multiple cores.

Cc Debian man-pages <[email protected]>
Cc "Dr. Tobias Quathamer" <[email protected]>

---

v2: No changes; resend

 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
index a7a4ca284..683dd12be 100644
@@ -20,7 +20,9 @@ INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_DIR = $(INSTALL) -m 755 -d
 
 .PHONY: all
-all: remove install
+all:
+	$(MAKE) uninstall;
+	$(MAKE) install;
 
 # Use with
 #  make HTOPTS=whatever html
Signature · 1 line
2.31.0
#4 lore raw

PATCH v2 3/3 .gitignore: Add file

In reply to a message not in the archive

Ignore:
.html: directory for building html pages. .patches: directory for storing patches before sending

---

v2: No changes; resend

 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitignore
.gitignore new file +2 -0
new file mode 100644
index 000000000..593d39213
@@ -0,0 +1,2 @@
+.html
+.patches
Signature · 1 line
2.31.0
#5 lore raw

PATCH v3 2/3 Makefile: Fix bug when running in parallel

In reply to a message not in the archive

Prerequisites can run in parallel. This wouldn't make any sense when uninstalling and installing again.

For that, use consecutive commands, which run one after the other even with multiple cores.

Cc Debian man-pages <[email protected]>
Cc "Dr. Tobias Quathamer" <[email protected]>
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
index 430090801..fdfaf9645 100644
@@ -20,7 +20,9 @@ INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_DIR = $(INSTALL) -m 755 -d
 
 .PHONY: all
-all: remove install
+all:
+	$(MAKE) uninstall;
+	$(MAKE) install;
 
 # Use with
 #  make HTOPTS=whatever html
Signature · 1 line
2.31.0
#6 lore raw

PATCH v3 3/3 .gitignore: Add file

In reply to a message not in the archive

Ignore:
.html: directory for building html pages. .patches: directory for storing patches before sending

---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitignore
.gitignore new file +2 -0
new file mode 100644
index 000000000..593d39213
@@ -0,0 +1,2 @@
+.html
+.patches
Signature · 1 line
2.31.0