mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-10-31 19:48:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			1009 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			1009 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| BINDIR=/usr/bin
 | |
| DESTDIR=
 | |
| PROGNAME=ansible-qubes
 | |
| 
 | |
| all: bin/*
 | |
| 
 | |
| clean:
 | |
| 	find -name '*~' -print0 | xargs -0 rm -fv
 | |
| 	rm -fv *.tar.gz *.rpm
 | |
| 
 | |
| dist: clean
 | |
| 	excludefrom= ; test -f .gitignore && excludefrom=--exclude-from=.gitignore ; DIR=$(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec` && FILENAME=$$DIR.tar.gz && tar cvzf "$$FILENAME" --exclude="$$FILENAME" --exclude=.git --exclude=.gitignore $$excludefrom --transform="s|^|$$DIR/|S" --show-transformed *
 | |
| 
 | |
| rpm: dist
 | |
| 	T=`mktemp -d` && rpmbuild --define "_topdir $$T" -ta $(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec`.tar.gz || { rm -rf "$$T"; exit 1; } && mv "$$T"/RPMS/*/* "$$T"/SRPMS/* . || { rm -rf "$$T"; exit 1; } && rm -rf "$$T"
 | |
| 
 | |
| srpm: dist
 | |
| 	T=`mktemp -d` && rpmbuild --define "_topdir $$T" -ts $(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec`.tar.gz || { rm -rf "$$T"; exit 1; } && mv "$$T"/SRPMS/* . || { rm -rf "$$T"; exit 1; } && rm -rf "$$T"
 | |
| 
 | |
| install: all
 | |
| 	ls -la bin
 | |
| 	install -Dm 755 bin/* -t $(DESTDIR)/$(BINDIR)/
 | 
