Fix make install while files are in use
When the dwl executable is in use, cp fails without the -f flag. POSIX defines this flag with: > If a file descriptor for a destination file cannot be obtained, > as described in step 3.a.ii., attempt to unlink the destination > file and proceed.
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -56,10 +56,10 @@ dist: clean | ||||
|  | ||||
| install: dwl | ||||
| 	mkdir -p $(DESTDIR)$(PREFIX)/bin | ||||
| 	cp dwl $(DESTDIR)$(PREFIX)/bin | ||||
| 	cp -f dwl $(DESTDIR)$(PREFIX)/bin | ||||
| 	chmod 755 $(DESTDIR)$(PREFIX)/bin/dwl | ||||
| 	mkdir -p $(DESTDIR)$(MANDIR)/man1 | ||||
| 	cp dwl.1 $(DESTDIR)$(MANDIR)/man1 | ||||
| 	cp -f dwl.1 $(DESTDIR)$(MANDIR)/man1 | ||||
| 	chmod 644 $(DESTDIR)$(MANDIR)/man1/dwl.1 | ||||
| uninstall: | ||||
| 	rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user