also install useful demos
This commit is contained in:
		
							parent
							
								
									90daad0764
								
							
						
					
					
						commit
						3fd1771d35
					
				
							
								
								
									
										6
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								makefile
									
									
									
									
									
								
							@ -289,14 +289,16 @@ endif
 | 
				
			|||||||
ifndef NODOCS
 | 
					ifndef NODOCS
 | 
				
			||||||
install: library docs
 | 
					install: library docs
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
install: library
 | 
					install: library $(USEFUL_DEMOS)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
	install -d $(LIBPATH)
 | 
						install -d $(LIBPATH)
 | 
				
			||||||
	install -d $(INCPATH)
 | 
						install -d $(INCPATH)
 | 
				
			||||||
	install -d $(DATAPATH)
 | 
						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 -m 644 doc/crypt.pdf $(DATAPATH)
 | 
						install -m 644 doc/crypt.pdf $(DATAPATH)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -96,10 +96,12 @@ TESTS=demos/test.o
 | 
				
			|||||||
#LIBPATH  The directory for libtomcrypt to be installed to.
 | 
					#LIBPATH  The directory for libtomcrypt to be installed to.
 | 
				
			||||||
#INCPATH  The directory to install the header files for libtomcrypt.
 | 
					#INCPATH  The directory to install the header files for libtomcrypt.
 | 
				
			||||||
#DATAPATH The directory to install the pdf docs.
 | 
					#DATAPATH The directory to install the pdf docs.
 | 
				
			||||||
 | 
					#BINPATH  The directory to install the binaries provided.
 | 
				
			||||||
DESTDIR  ?= /usr/local
 | 
					DESTDIR  ?= /usr/local
 | 
				
			||||||
LIBPATH  ?= $(DESTDIR)/lib
 | 
					LIBPATH  ?= $(DESTDIR)/lib
 | 
				
			||||||
INCPATH  ?= $(DESTDIR)/include
 | 
					INCPATH  ?= $(DESTDIR)/include
 | 
				
			||||||
DATAPATH ?= $(DESTDIR)/share/doc/libtomcrypt/pdf
 | 
					DATAPATH ?= $(DESTDIR)/share/doc/libtomcrypt/pdf
 | 
				
			||||||
 | 
					BINPATH  ?= $(DESTDIR)/bin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Who do we install as?
 | 
					#Who do we install as?
 | 
				
			||||||
ifdef INSTALL_USER
 | 
					ifdef INSTALL_USER
 | 
				
			||||||
 | 
				
			|||||||
@ -234,11 +234,13 @@ $(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)
 | 
					install: $(LIBNAME) $(USEFUL_DEMOS)
 | 
				
			||||||
	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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user