Fixed up makefile to provide rule to create man page (not done automatically), and to remove any installed info/dir files.
This commit is contained in:
		
					parent
					
						
							
								a5e51bfa85
							
						
					
				
			
			
				commit
				
					
						be34829b1b
					
				
			
		
					 2 changed files with 22 additions and 2 deletions
				
			
		
							
								
								
									
										20
									
								
								makefile.am
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								makefile.am
									
										
									
									
									
								
							|  | @ -77,9 +77,29 @@ install-exec-hook: | |||
|     else \ | ||||
|        echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \ | ||||
|     fi | ||||
| 	@echo | ||||
| 	@echo "  AFTER INSTALLATION, CONSIDER RUNNING make cook-up-man" | ||||
| 	@echo | ||||
| 
 | ||||
| 
 | ||||
| uninstall-hook: | ||||
| 	if [ "`id -u`" -eq "0" ]; then \ | ||||
|         rm -f $(fpp){cron,crontab}$(EXEEXT); \ | ||||
|     fi | ||||
| 
 | ||||
| 
 | ||||
| # Debian lintian barfs if we install an info top-level. | ||||
| 
 | ||||
| install-data-hook: | ||||
| 	if [ -f $(DESTDIR)$(infodir)/dir  -o  -f $(DESTDIR)$(infodir)/dir.gz ]; \ | ||||
| 	    then \ | ||||
| 	    rm $(DESTDIR)$(infodir)/dir*; \ | ||||
| 	fi | ||||
| 
 | ||||
| 
 | ||||
| # Not part of formal package building, but a rule for manual use to get the | ||||
| # elemental man page.  Will only work once the mcron program is installed. | ||||
| cook-up-man: | ||||
| 	help2man -n 'a program to run tasks at regular (or not) intervals' \ | ||||
| 	    $(fpp)mcron > mcron.1 | ||||
| 	$(MAKE) install | ||||
|  |  | |||
							
								
								
									
										4
									
								
								mcron.1
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								mcron.1
									
										
									
									
									
								
							|  | @ -1,7 +1,7 @@ | |||
| .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.37.1. | ||||
| .TH MCRON "1" "June 2010" "mcron " "User Commands" | ||||
| .SH NAME | ||||
| mcron \- manual page for mcron  | ||||
| mcron \- a program to run tasks at regular (or not) intervals | ||||
| .SH SYNOPSIS | ||||
| .B mcron | ||||
| [\fIOPTIONS\fR] [\fIFILES\fR] | ||||
|  | @ -30,7 +30,7 @@ Written by Dale Mellor | |||
| .SH "REPORTING BUGS" | ||||
| Report bugs to dale_mellor@users.sourceforge.net. | ||||
| .PP | ||||
| mcron  (mcron 1.0.4) | ||||
| mcron  (mcron 1.0.5) | ||||
| .SH COPYRIGHT | ||||
| Copyright \(co 2003, 2006  Dale Mellor | ||||
| .br | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dale Mellor
				Dale Mellor