Add Makefile
This commit is contained in:
		
							parent
							
								
									4701fc7cd3
								
							
						
					
					
						commit
						3a2b3e199f
					
				
					 1 changed files with 25 additions and 0 deletions
				
			
		
							
								
								
									
										25
									
								
								Makefile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								Makefile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| 
 | ||||
| .PHONY: all install clean uninstall | ||||
| 
 | ||||
| PREFIX=/usr/local | ||||
| 
 | ||||
| CP=cp | ||||
| INSTALL=install | ||||
| MKDIR=mkdir -p | ||||
| PYTHON=python3 | ||||
| RM=rm -f -v | ||||
| 
 | ||||
| all: | ||||
| 
 | ||||
| install: | ||||
| 	$(INSTALL) -Dm0755 danmaku2ass.py "$(PREFIX)/bin/danmaku2ass" | ||||
| 	$(MKDIR) "$(PREFIX)/share" | ||||
| 	$(CP) -R locale "$(PREFIX)/share/" | ||||
| 
 | ||||
| clean: | ||||
| 	$(RM) danmaku2ass.pyo | ||||
| 
 | ||||
| uninstall: | ||||
| 	$(RM) "$(PREFIX)/bin/danmaku2ass" | ||||
| 	$(RM) "$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."* | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Star Brilliant
						Star Brilliant