mirror of
				https://github.com/kastdeur/dotfiles.git
				synced 2025-10-31 03:06:35 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable file
		
	
	
	
	
PREFIX=/usr/local
 | 
						|
VIMDIR=$(PREFIX)/share/vim
 | 
						|
BINDIR=$(PREFIX)/bin
 | 
						|
 | 
						|
VERSION=1.8.23
 | 
						|
DATE=$(shell date +%Y%m%d)
 | 
						|
COMMIT_COUNT=$(shell git log --oneline | wc -l)
 | 
						|
ABBREV_HASH=$(shell git log --oneline | head -n 1 | cut -d\  -f 1)
 | 
						|
 | 
						|
SNAPSHOTNAME=vim-latex-$(VERSION)-$(DATE).$(COMMIT_COUNT)-git$(ABBREV_HASH)
 | 
						|
 | 
						|
snapshot:
 | 
						|
	git archive --prefix '$(SNAPSHOTNAME)/' HEAD | gzip > '$(SNAPSHOTNAME).tar.gz'
 | 
						|
 | 
						|
install:
 | 
						|
	install -d '$(DESTDIR)$(VIMDIR)/doc'
 | 
						|
	install -m 0644 doc/*.txt '$(DESTDIR)$(VIMDIR)/doc'
 | 
						|
 | 
						|
	install -d '$(DESTDIR)$(VIMDIR)'
 | 
						|
	cp -R compiler ftplugin indent plugin '$(DESTDIR)$(VIMDIR)'
 | 
						|
	chmod 0755 '$(DESTDIR)$(VIMDIR)/ftplugin/latex-suite/outline.py'
 | 
						|
 | 
						|
	install -d '$(DESTDIR)$(BINDIR)'
 | 
						|
	install latextags ltags '$(DESTDIR)$(BINDIR)'
 | 
						|
 | 
						|
upload: snapshot
 | 
						|
	scp '$(SNAPSHOTNAME).tar.gz' frs.sourceforge.net:/home/frs/project/v/vi/vim-latex/snapshots
 | 
						|
 | 
						|
.PHONY: install upload
 |