IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8960


Ignore:
Timestamp:
Sep 25, 2006, 2:40:40 PM (20 years ago)
Author:
jhoblitt
Message:

fix out of tree builds & properly distribute test data files

Location:
trunk/psLib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/etc/Makefile.am

    r8910 r8960  
    44# this is done instead of using autoconf to delay the expansion of datadir
    55# until --prefix is known
    6 pslib.config: pslib.config.template
     6pslib.config: $(srcdir)/pslib.config.template
    77        $(PERL) -pe 's|DATADIR|$(pkgdatadir)|' $? > $@
    88
  • trunk/psLib/test/astro/Makefile.am

    r8958 r8960  
    44        $(top_builddir)/test/tap/src/libtap.la \
    55        $(PSLIB_LIBS)
    6 
    7 check_DATA = \
    8         pslib.config \
    9         test.psTime.config1 \
    10         test.psTime.config2 \
    11         test.psTime.config3 \
    12         test.psTime.config4 \
    13         test.ser7.dat
    146
    157TEST_PROGS =
     
    2214endif
    2315
    24 CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
     16EXTRA_DIST = \
     17        data/psTime.config.template \
     18        data/test.psTime.config1.template \
     19        data/test.psTime.config2.template \
     20        data/test.psTime.config3.template \
     21        data/test.psTime.config4.template \
     22        data/test.ser7.dat
    2523
    26 pslib.config: $(top_srcdir)/etc/pslib/pslib.config.template
     24tmp_files = \
     25        pslib.config \
     26        test.psTime.config1 \
     27        test.psTime.config2 \
     28        test.psTime.config3 \
     29        test.psTime.config4 \
     30        test.ser7.dat
     31
     32CLEANFILES = $(tmp_files) core core.* *~ *.bb *.bbg *.da gmon.out
     33
     34pslib.config: $(top_srcdir)/etc/pslib.config.template
    2735        $(PERL) -pe 's|DATADIR|$(top_srcdir)/share|' $? > $@
    2836
    29 test.psTime.config1: data/test.psTime.config1.template
     37test.psTime.config1: $(srcdir)/data/test.psTime.config1.template
    3038        cp $? $@
    3139
    32 test.psTime.config2: data/test.psTime.config2.template
     40test.psTime.config2: $(srcdir)/data/test.psTime.config2.template
    3341        $(PERL) -pe 's|PREFIX|$(top_srcdir)|' $? > $@
    3442
    35 test.psTime.config3: data/test.psTime.config3.template
     43test.psTime.config3: $(srcdir)/data/test.psTime.config3.template
    3644        $(PERL) -pe 's|PREFIX|$(top_srcdir)|' $? > $@
    3745
    38 test.psTime.config4: data/test.psTime.config4.template
     46test.psTime.config4: $(srcdir)/data/test.psTime.config4.template
    3947        cp $? $@
    4048
    41 test.ser7.dat: data/test.ser7.dat
     49test.ser7.dat: $(srcdir)/data/test.ser7.dat
    4250        cp $? $@
    4351
  • trunk/psLib/test/types/Makefile.am

    r8958 r8960  
    3333endif
    3434
    35 check_DATA = \
     35EXTRA_DIST = \
    3636        data/header_1.fits \
    3737        data/header_2.fits \
     38        data/mdcfgwrt.verified \
    3839        data/test.config \
    3940        data/test1.config \
     
    4142        data/test3.config \
    4243        data/test4.config \
    43         data/test5.config \
    44         data/mdcfgwrt.verified
     44        data/test5.config
    4545
    46 CLEANFILES = multi.fits table.fits temp/* MDCopy.in MDCopy.out mdcfgwrt.out \
     46tmp_files = \
     47        header_1.fits \
     48        header_2.fits \
     49        mdcfgwrt.verified \
     50        test.config \
     51        test1.config \
     52        test2.config \
     53        test3.config \
     54        test4.config \
     55        test5.config
     56
     57CLEANFILES = $(tmp_files) multi.fits table.fits temp/* MDCopy.in MDCopy.out mdcfgwrt.out \
    4758        core core.* *~ *.bb *.bbg *.da gmon.out
    4859
    49 tests: $(check_PROGRAMS) $(check_DATA)
     60tests: $(check_PROGRAMS)
    5061        $(top_srcdir)/test/test.pl
    5162
     63# XXX what is the point of verbatim copying these files?
    5264
    5365%.dat: verified/%.dat
    5466        cp $? $@
    5567
    56 test.config: data/test.config
     68test.config: $(srcdir)/data/test.config
    5769        cp $? $@
    5870
    59 test1.config: data/test1.config
     71test1.config: $(srcdir)/data/test1.config
    6072        cp $? $@
    6173
    62 test2.config: data/test2.config
     74test2.config: $(srcdir)/data/test2.config
    6375        cp $? $@
    6476
    65 test3.config: data/test3.config
     77test3.config: $(srcdir)/data/test3.config
    6678        cp $? $@
    6779
    68 test4.config: data/test4.config
     80test4.config: $(srcdir)/data/test4.config
    6981        cp $? $@
    7082
    71 test5.config: data/test5.config
     83test5.config: $(srcdir)/data/test5.config
    7284        cp $? $@
    7385
    74 header_1.fits: data/header_1.fits
     86header_1.fits: $(srcdir)/data/header_1.fits
    7587        cp $? $@
    7688
    77 header_2.fits: data/header_2.fits
     89header_2.fits: $(srcdir)/data/header_2.fits
    7890        cp $? $@
    7991
    80 mdcfgwrt.verified: data/mdcfgwrt.verified
     92mdcfgwrt.verified: $(srcdir)/data/mdcfgwrt.verified
    8193        cp $? $@
    8294
Note: See TracChangeset for help on using the changeset viewer.