[GRASS5] testsuite with dejagnu

Eric Mitchell emitchell at altaira.com
Tue Oct 24 10:28:55 EDT 2000


Markus Neteler wrote:
> 
> > Another problem is that the make install process repeats the html to man
> > conversion every time it is invoked, there seems to be no status
> > information on the build process.
> Here we need something. Probably a timestamp comparison.

Make should do the comparison automatically.  The trick is 
in the proper setup of the rules to perform the conversion.
Something like the following:

#######################################
# process the html pages into man pages
%.man: %.html
	html2man $< > $@

# make sure the man directory exists
$(GRASS_MANDIR):
	test -d $(GRASS_MANDIR) || mkdir -p $(GRASS_MANDIR)

# copy the man pages
$(GRASS_MANDIR)/%:% $(GRASS_MANDIR)
	cp $< $@
#######################################

The trick is in specifying the dependency of the man page
on the html page, and not just blindly executing the 
html2man process.


> Markus
> 
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'

-- 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:emitchell at altaira.com |
| tel: (301) 809 - 3534    Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR    4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122    Bowie, MD  20716             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\  / o=\  /"""---===/
         /   \_/  \__/   ---===/ 
         |    //\   || /""TT""/ //\   || ||""\
         |   //  \  ||    ||   //  \  || ||__/
         |  //--==\ |L--/ ||  //--==\ || || "=,
          \      ---===/
           \____---===/

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list