IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1007


Ignore:
Timestamp:
Jun 11, 2004, 10:36:04 AM (22 years ago)
Author:
desonia
Message:

added install targets to make a test suite executable for non-source
distributions.

Location:
trunk/psLib/test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/Makefile

    r781 r1007  
    33##  Makefile:   test
    44##
    5 ##  $Revision: 1.3 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-05-25 23:56:26 $
     5##  $Revision: 1.4 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 20:36:04 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5151# Define PHONY target "install" which will install necessary files
    5252
    53 install: $(TARGET_STATIC) $(TARGET_DYNAMIC) $(includedir) $(libexecdir)
     53install: $(TARGET_STATIC) $(TARGET_DYNAMIC) $(includedir) $(libexecdir) $(testbindir)
    5454        install *.h $(includedir)
    5555        install $(TARGET_STATIC) $(libexecdir)
    5656        install $(TARGET_DYNAMIC) $(libexecdir)
     57        install FullUnitTest runTest $(testbindir)
     58        $(MAKE) --directory=collections install
     59        $(MAKE) --directory=dataManip install
     60        $(MAKE) --directory=sysUtils install
    5761
    5862# Define PHONY target "distclean" which will cleanup the distribution
    5963
    6064distclean:      clean
     65        $(MAKE) --directory=collections distclean
     66        $(MAKE) --directory=dataManip distclean
     67        $(MAKE) --directory=sysUtils distclean
    6168        $(RM) $(TARGET_STATIC)
    6269        $(RM) $(TARGET_DYNAMIC)
     
    6774
    6875clean:
     76        $(MAKE) --directory=collections clean
     77        $(MAKE) --directory=dataManip clean
     78        $(MAKE) --directory=sysUtils clean
    6979        @echo "    Deleting intermediate files for 'test'"
    7080        $(RM) $(SRC_OBJS) *.lint
    7181
    7282%.lint: %.c
    73         splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 
     83        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    7484
    7585# Rule to make include directory if needed
     
    8393        mkdir -p $(libexecdir)
    8494
     95$(testbindir):
     96        mkdir -p $(testbindir)
     97
  • trunk/psLib/test/collections/Makefile

    r1004 r1007  
    33##  Makefile:   test/collections
    44##
    5 ##  $Revision: 1.13 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-11 19:38:58 $
     5##  $Revision: 1.14 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 20:36:04 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    99##
    1010###############################################################################
     11
     12ifndef prefix
     13    export prefix=$(shell cd ../..;pwd)
     14endif
    1115
    1216include ../../src/Makefile.Globals
     
    6973        $(RM) -f $@.tmp
    7074
     75install: $(testbindir) $(testbindir)/verified $(TARGET)
     76        install $(TARGET) $(testbindir)
     77        install verified/*.stderr verified/*.stdout $(testbindir)/verified
     78
     79$(testbindir):
     80        mkdir -p $(testbindir)
     81
     82$(testbindir)/verified:
     83        mkdir -p $(testbindir)/verified
     84
     85
  • trunk/psLib/test/dataManip/Makefile

    r1002 r1007  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.12 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-11 19:24:43 $
     5##  $Revision: 1.13 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 20:36:04 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    99##
    1010###############################################################################
     11
     12ifndef prefix
     13    export prefix=$(shell cd ../..;pwd)
     14endif
    1115
    1216include ../../src/Makefile.Globals
     
    7377        $(RM) -f $@.tmp
    7478
     79install: $(testbindir) $(testbindir)/verified $(TARGET)
     80        install $(TARGET) $(testbindir)
     81        install verified/*.stderr verified/*.stdout $(testbindir)/verified
     82
     83$(testbindir):
     84        mkdir -p $(testbindir)
     85
     86$(testbindir)/verified:
     87        mkdir -p $(testbindir)/verified
     88
     89
  • trunk/psLib/test/sysUtils/Makefile

    r1003 r1007  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.14 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-11 19:37:23 $
     5##  $Revision: 1.15 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 20:36:04 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    99##
    1010###############################################################################
     11
     12ifndef prefix
     13    export prefix=$(shell cd ../..;pwd)
     14endif
    1115
    1216include ../../src/Makefile.Globals
     
    6771        sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@
    6872        $(RM) -f $@.tmp
     73
     74install: $(testbindir) $(testbindir)/verified $(TARGET)
     75        install $(TARGET) $(testbindir)
     76        install verified/*.stderr verified/*.stdout $(testbindir)/verified
     77
     78$(testbindir):
     79        mkdir -p $(testbindir)
     80
     81$(testbindir)/verified:
     82        mkdir -p $(testbindir)/verified
     83
Note: See TracChangeset for help on using the changeset viewer.