mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-31 19:49:02 +01:00 
			
		
		
		
	Enables debian package creation
with make deb . Next commit will update the README
This commit is contained in:
		
					parent
					
						
							
								747ff25ada
							
						
					
				
			
			
				commit
				
					
						8f48612c82
					
				
			
		
					 24 changed files with 105 additions and 39 deletions
				
			
		
							
								
								
									
										27
									
								
								Makefile.am
									
										
									
									
									
								
							
							
						
						
									
										27
									
								
								Makefile.am
									
										
									
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| SUBDIRS=lodel progs plugins | ||||
| EXTRA_DIST=plugins runtest examples tests README | ||||
| CLEANFILES=runtest | ||||
| SUBDIRS = lodel progs plugins | ||||
| EXTRA_DIST = plugins runtest examples tests README runtest.sh debian | ||||
| CLEANFILES = runtest | ||||
| 
 | ||||
| lodel2_localstate_DATA = | ||||
| lodel2_localstatedir=$(localstatedir)/lodel2 | ||||
|  | @ -28,7 +28,14 @@ do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g' | |||
| runtest: runtest.sh | ||||
| 	$(do_subst) < $(srcdir)/runtest.sh > runtest | ||||
| 	chmod +x runtest | ||||
| 	 | ||||
| 
 | ||||
| #Adding logdir creation on install | ||||
| install-data-hook: | ||||
| 	mkdir -p ${DESTDIR}$(lodel2_localstatedir) | ||||
| 
 | ||||
| #Making debian package | ||||
| deb: dist | ||||
| 	mkdir debian_package; tar -xvf ${PACKAGE}-${VERSION}.tar.gz -C ./debian_package; cd debian_package/${PACKAGE}-${VERSION}; dpkg-buildpackage -rfakeroot; | ||||
| 
 | ||||
| # Test em update ( examples/em_test.pickle ) | ||||
| em_test: em_test.py | ||||
|  | @ -39,18 +46,22 @@ dyncode: examples/em_test.pickle | |||
| 	$(python) scripts/refreshdyn.py examples/em_test.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)" | ||||
| 
 | ||||
| # run tests | ||||
| check: | ||||
| checks: | ||||
| 	./runtest -v | ||||
| 
 | ||||
| unittest: check | ||||
| 
 | ||||
| #Cleaning documentation and dyncode | ||||
| clean-local: cleandoc | ||||
| 	-rm -R doc/html doc/doxygen_sqlite3.db | ||||
| 	-rm -vR doc/html doc/doxygen_sqlite3.db | ||||
| cleandoc: | ||||
| 	-rm $(dyncode_filename) | ||||
| 	-rm -v $(dyncode_filename) | ||||
| 
 | ||||
| #other cleans | ||||
| distclean-local: | ||||
| 	-rm -R Makefile Makefile.in autom4te.cache/ aclocal.m4 install-sh missing py-compile configure | ||||
| 	-rm -vR debian_package ${PACKAGE}-${VERSION}.tar.gz | ||||
| 
 | ||||
| gitclean: distclean cleandoc | ||||
| 	-rm -vR autom4te.cache/ aclocal.m4 install-sh missing py-compile configure; find ./ -name Makefile.in |xargs rm -v | ||||
| 
 | ||||
| .PHONY: cleandoc tests doc | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yann
				Yann