Browse Source

make install: use force when creating links

Davin McCall 5 years ago
parent
commit
74e735a388
2 changed files with 4 additions and 4 deletions
  1. 2 2
      doc/manpages/Makefile
  2. 2 2
      src/Makefile

+ 2 - 2
doc/manpages/Makefile

@@ -7,6 +7,6 @@ install:
 	install -m644 dinit-service.5 "$(DESTDIR)$(MANDIR)/man5"
 ifeq ($(BUILD_SHUTDOWN),yes)
 	install -m644 shutdown.8 "$(DESTDIR)$(MANDIR)/man8"
-	ln "$(DESTDIR)$(MANDIR)/man8/shutdown.8" "$(DESTDIR)$(MANDIR)/man8/halt.8" 
-	ln "$(DESTDIR)$(MANDIR)/man8/shutdown.8" "$(DESTDIR)$(MANDIR)/man8/reboot.8" 
+	ln -f "$(DESTDIR)$(MANDIR)/man8/shutdown.8" "$(DESTDIR)$(MANDIR)/man8/halt.8" 
+	ln -f "$(DESTDIR)$(MANDIR)/man8/shutdown.8" "$(DESTDIR)$(MANDIR)/man8/reboot.8" 
 endif

+ 2 - 2
src/Makefile

@@ -52,8 +52,8 @@ install: all
 	install -d $(DESTDIR)$(SBINDIR)
 	install -s dinit dinitctl $(SHUTDOWN) $(DESTDIR)$(SBINDIR)
 ifeq ($(BUILD_SHUTDOWN),yes)
-	ln $(DESTDIR)$(SBINDIR)/shutdown $(DESTDIR)$(SBINDIR)/halt
-	ln $(DESTDIR)$(SBINDIR)/shutdown $(DESTDIR)$(SBINDIR)/reboot
+	ln -f $(DESTDIR)$(SBINDIR)/shutdown $(DESTDIR)$(SBINDIR)/halt
+	ln -f $(DESTDIR)$(SBINDIR)/shutdown $(DESTDIR)$(SBINDIR)/reboot
 endif
 
 clean: