IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2833 for trunk/Ohana/Makefile


Ignore:
Timestamp:
Dec 27, 2004, 2:30:56 PM (22 years ago)
Author:
eugene
Message:

mods to makefiles to fix solaris compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Makefile

    r2631 r2833  
    7272LIBS-lin64 = libfits libohana libdummy
    7373LIBS-sid   = libfits libohana libdummy
     74LIBS-sol   = libfits libohana
    7475
    7576# general build targets:
    7677libs:
     78        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     79        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    7780        mkdir -p $(LINC)
    7881        mkdir -p $(LLIB)
     
    9093
    9194clean:
     95        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     96        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    9297        for i in $(LIBS-$(ARCH)); do make $$i.clean || exit; done
    9398        for i in $(PROGRAM); do make $$i.clean || exit; done
     
    95100
    96101dist:
     102        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     103        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    97104        for i in $(LIBS-$(ARCH)); do make $$i.dist || exit; done
    98105        for i in $(PROGRAM); do make $$i.dist || exit; done
    99106
    100107install:
     108        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     109        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    101110        for i in $(LIBS-$(ARCH)); do make $$i.install || exit; done
    102111        for i in $(PROGRAM); do make $$i.install || exit; done
     
    107116# standard rules: targets are foo, foo.clean, foo.install, foo.dist
    108117$(PROGRAM) $(LIBS-$(ARCH)) $(EXTRAS):
    109         if [ -e "src/$@" ]; then (cd src/$@ && make); fi
     118        if [ -d "src/$@" ]; then (cd src/$@ && make); fi
    110119
    111120%.install:
    112121        mkdir -p bin/$(ARCH)
    113         if [ -e "src/$*" ]; then (cd src/$* && make install); fi
     122        if [ -d "src/$*" ]; then (cd src/$* && make install); fi
    114123
    115124%.clean:
    116         if [ -e "src/$*" ]; then (cd src/$* && make clean); fi
     125        if [ -d "src/$*" ]; then (cd src/$* && make clean); fi
    117126
    118127%.dist:
Note: See TracChangeset for help on using the changeset viewer.