mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Merge pull request #16 from mschmoelzer/master
Allow setting of installation destination via DESTDIR variable in Makefi...
This commit is contained in:
		
						commit
						f830666ec0
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										11
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -8,6 +8,8 @@ ENABLE_QT4 := 1 | ||||||
| ENABLE_MINISAT := 1 | ENABLE_MINISAT := 1 | ||||||
| ENABLE_GPROF := 0 | ENABLE_GPROF := 0 | ||||||
| 
 | 
 | ||||||
|  | DESTDIR = "/usr/local" | ||||||
|  | 
 | ||||||
| OBJS = | OBJS = | ||||||
| GENFILES = | GENFILES = | ||||||
| EXTRA_TARGETS = | EXTRA_TARGETS = | ||||||
|  | @ -105,12 +107,13 @@ test: yosys | ||||||
| 	cd tests/asicworld && bash run-test.sh | 	cd tests/asicworld && bash run-test.sh | ||||||
| 
 | 
 | ||||||
| install: $(TARGETS) | install: $(TARGETS) | ||||||
| 	install $(TARGETS) /usr/local/bin/ | 	mkdir -p $(DESTDIR)/bin | ||||||
| 	mkdir -p /usr/local/share/yosys | 	install $(TARGETS) $(DESTDIR)/bin/ | ||||||
| 	cp -r share/. /usr/local/share/yosys/. | 	mkdir -p $(DESTDIR)/share/yosys | ||||||
|  | 	cp -r share/. $(DESTDIR)/share/yosys/. | ||||||
| 
 | 
 | ||||||
| install-abc: | install-abc: | ||||||
| 	install yosys-abc /usr/local/bin/ | 	install yosys-abc $(DESTDIR)/bin/ | ||||||
| 
 | 
 | ||||||
| manual: | manual: | ||||||
| 	cd manual && bash make.sh | 	cd manual && bash make.sh | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue