split-out binary installation in separate install target
This commit is contained in:
		
							parent
							
								
									7ed5a832b0
								
							
						
					
					
						commit
						3c5ec6b699
					
				
							
								
								
									
										8
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								makefile
									
									
									
									
									
								
							| @ -290,19 +290,21 @@ endif | |||||||
| ifndef NODOCS | ifndef NODOCS | ||||||
| install: library docs | install: library docs | ||||||
| else | else | ||||||
| install: library $(USEFUL_DEMOS) | install: library | ||||||
| endif | endif | ||||||
| 	install -d $(LIBPATH) | 	install -d $(LIBPATH) | ||||||
| 	install -d $(INCPATH) | 	install -d $(INCPATH) | ||||||
| 	install -d $(BINPATH) |  | ||||||
| 	install -m 644 $(LIBNAME) $(LIBPATH) | 	install -m 644 $(LIBNAME) $(LIBPATH) | ||||||
| 	install -m 644 $(HEADERS) $(INCPATH) | 	install -m 644 $(HEADERS) $(INCPATH) | ||||||
| 	install -m 644 $(USEFUL_DEMOS) $(BINPATH) |  | ||||||
| ifndef NODOCS | ifndef NODOCS | ||||||
| 	install -d $(DATAPATH) | 	install -d $(DATAPATH) | ||||||
| 	install -m 644 doc/crypt.pdf $(DATAPATH) | 	install -m 644 doc/crypt.pdf $(DATAPATH) | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
|  | install_bins: $(USEFUL_DEMOS) | ||||||
|  | 	install -d $(BINPATH) | ||||||
|  | 	install -m 775 $(USEFUL_DEMOS) $(BINPATH) | ||||||
|  | 
 | ||||||
| install_test: $(LIBTEST) | install_test: $(LIBTEST) | ||||||
| 	install -d $(LIBPATH) | 	install -d $(LIBPATH) | ||||||
| 	install -d $(INCPATH) | 	install -d $(INCPATH) | ||||||
|  | |||||||
| @ -239,16 +239,18 @@ $(LIBNAME): $(OBJECTS) | |||||||
| $(LIBTEST): $(TOBJECTS) | $(LIBTEST): $(TOBJECTS) | ||||||
| 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./testprof -type f -name "*.lo"` -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) | 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./testprof -type f -name "*.lo"` -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) | ||||||
| 
 | 
 | ||||||
| install: $(LIBNAME) $(USEFUL_DEMOS) | install: $(LIBNAME) | ||||||
| 	install -d $(LIBPATH)/pkgconfig | 	install -d $(LIBPATH)/pkgconfig | ||||||
| 	install -d $(INCPATH) | 	install -d $(INCPATH) | ||||||
| 	install -d $(BINPATH) |  | ||||||
| 	$(LT) --mode=install install -c $(LIBNAME) $(LIBPATH)/$(LIBNAME) | 	$(LT) --mode=install install -c $(LIBNAME) $(LIBPATH)/$(LIBNAME) | ||||||
| 	install -m 644 $(HEADERS) $(INCPATH) | 	install -m 644 $(HEADERS) $(INCPATH) | ||||||
| 	install -m 775 $(USEFUL_DEMOS) $(BINPATH) |  | ||||||
| 	sed -e 's,^prefix=.*,prefix=$(DESTDIR),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(LIBPATH)/pkgconfig/libtomcrypt.pc | 	sed -e 's,^prefix=.*,prefix=$(DESTDIR),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(LIBPATH)/pkgconfig/libtomcrypt.pc | ||||||
| 	install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/libtomcrypt.pc | 	install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/libtomcrypt.pc | ||||||
| 
 | 
 | ||||||
|  | install_bins: $(USEFUL_DEMOS) | ||||||
|  | 	install -d $(BINPATH) | ||||||
|  | 	$(LT) --mode=install install -c $(USEFUL_DEMOS) $(BINPATH) | ||||||
|  | 
 | ||||||
| install_test: $(LIBTEST) | install_test: $(LIBTEST) | ||||||
| 	install -d $(LIBPATH) | 	install -d $(LIBPATH) | ||||||
| 	install -d $(INCPATH) | 	install -d $(INCPATH) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user