IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24710


Ignore:
Timestamp:
Jul 7, 2009, 2:28:49 PM (17 years ago)
Author:
eugene
Message:

add tests to build magic iff magic and ssa_core_cpp exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/Makefile.in

    r24669 r24710  
    22default: all
    33
    4 all: ssa-core-cpp magic
     4all: ssa-core-cpp magic remove
    55
    6 install: magic.install
     6install: magic.install remove.install
    77
    88clean:
    9         cd magic && make -f Makefile.magic clean
    10         cd ssa-core-cpp && make clean
     9        if [ -d magic ]; then (cd magic && make -f Makefile.magic clean); fi
     10        if [ -d ssa-core-cpp ]; then (cd ssa-core-cpp && make clean); fi
     11        cd $(REMOVE) && make -f Makefile.simple clean
    1112
    1213update:
     
    1920
    2021ssa-core-cpp/build/libSSA.a:
    21         cd ssa-core-cpp && ./configure
    22         cd ssa-core-cpp && make
     22        if [ -d ssa-core-cpp ]; then (cd ssa-core-cpp && ./configure && make); fi
    2323
    2424magic: magic/DetectStreaks
    2525
    2626magic/DetectStreaks:
    27         cd magic && make -f Makefile.magic
     27        if [ -d magic ]; then (cd magic && make -f Makefile.magic); fi
    2828
    2929magic.install:
    30         cd magic && make -f Makefile.magic install
     30        if [ -d magic ]; then (cd magic && make -f Makefile.magic install); fi
     31
     32REMOVE = remove/src
     33
     34REMOVE_PROGRAMS = \
     35$(REMOVE)/isdestreaked \
     36$(REMOVE)/streakscompare \
     37$(REMOVE)/streaksrelease \
     38$(REMOVE)/streaksremove \
     39$(REMOVE)/streaksreplace
     40
     41remove: $(REMOVE_PROGRAMS)
     42
     43 $(REMOVE_PROGRAMS):
     44        @cd $(REMOVE) && make -f Makefile.simple all
     45
     46remove.install: remove
     47        @cd $(REMOVE) && make -f Makefile.simple install
Note: See TracChangeset for help on using the changeset viewer.