mirror of
				https://github.com/Tha14/toxic.git
				synced 2025-10-31 02:36:53 +01:00 
			
		
		
		
	Merge pull request #322 from Ansa89/trivial-fix
Makefile: add uninstall target
This commit is contained in:
		| @@ -1,12 +1,13 @@ | ||||
| # Help target | ||||
| help: | ||||
| 	@echo "-- Targets --" | ||||
| 	@echo "  all:     Build toxic and documentation [DEFAULT]" | ||||
| 	@echo "  toxic:   Build toxic" | ||||
| 	@echo "  doc:     Build documentation" | ||||
| 	@echo "  install: Build toxic and install it in PREFIX (default PREFIX is \"$(abspath $(PREFIX))\")" | ||||
| 	@echo "  clean:   Remove built files" | ||||
| 	@echo "  help:    This help" | ||||
| 	@echo "  all:       Build toxic and documentation [DEFAULT]" | ||||
| 	@echo "  toxic:     Build toxic" | ||||
| 	@echo "  doc:       Build documentation" | ||||
| 	@echo "  install:   Build toxic and install it in PREFIX (default PREFIX is \"$(abspath $(PREFIX))\")" | ||||
| 	@echo "  uninstall: Remove toxic from PREFIX (default PREFIX is \"$(abspath $(PREFIX))\")" | ||||
| 	@echo "  clean:     Remove built files" | ||||
| 	@echo "  help:      This help" | ||||
| 	@echo | ||||
| 	@echo "-- Variables --" | ||||
| 	@echo "  DISABLE_X11:            Set to \"1\" to force building without X11 support" | ||||
|   | ||||
							
								
								
									
										24
									
								
								cfg/targets/uninstall.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								cfg/targets/uninstall.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| # Uninstall target | ||||
| uninstall: | ||||
| 	@echo "Removing toxic executable" | ||||
| 	@rm -f $(abspath $(DESTDIR)/$(BINDIR)/toxic) | ||||
| 	 | ||||
| 	@echo "Removing desktop file" | ||||
| 	@rm -f $(abspath $(DESTDIR)/$(APPDIR)/$(DESKFILE)) | ||||
| 	 | ||||
| 	@echo "Removing data files" | ||||
| 	@for f in $(DATAFILES) ; do \ | ||||
| 		rm -f $(abspath $(DESTDIR)/$(DATADIR)/$$f) ;\ | ||||
| 	done | ||||
| 	@for f in $(SNDFILES) ; do \ | ||||
| 		rm -f $(abspath $(DESTDIR)/$(DATADIR)/sounds/$$f) ;\ | ||||
| 	done | ||||
| 	 | ||||
| 	@echo "Removing man pages" | ||||
| 	@for f in $(MANFILES) ; do \ | ||||
| 		section=$(abspath $(DESTDIR)/$(MANDIR))/man`echo $$f | rev | cut -d "." -f 1` ;\ | ||||
| 		file=$$section/$$f ;\ | ||||
| 		rm -f $$file $$file.gz ;\ | ||||
| 	done | ||||
|  | ||||
| .PHONY: uninstall | ||||
		Reference in New Issue
	
	Block a user