IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 10, 2005, 10:09:43 AM (21 years ago)
Author:
eugene
Message:

updating Makefiles

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi

    • Property svn:ignore set to
      lib
      bin
  • trunk/Ohana/src/opihi/mana/Makefile

    r4691 r4747  
    11include ../../../Configure
    2 
    3 default: all
    42
    53HOME    =       $(ROOT)/src/opihi
     
    4543$(DESTLIB)/libdatacmd.a
    4644
    47 all: mana
    48 
    4945mana: $(BIN)/mana.$(ARCH)
    50         @echo done
    5146
    5247$(BIN)/mana.$(ARCH) : $(mana) $(libs)
     
    5651help: cmd.basic.help cmd.data.help cmd.astro.help mana.help
    5752
    58 # utilities #################################################
    59 $(BIN)/%.$(ARCH):
    60         @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    61         $(CC) $^ -o $@ $(LFLAGS) $(LIBS)
    62         @echo "compiled $*"
    63         @echo ""
     53.PHONY: mana
    6454
    65 $(DESTBIN)/%: $(BIN)/%.$(ARCH)
    66         @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi
    67         rm -f $(DESTBIN)/$*
    68         cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$*
    69         @echo "installed $*"
    70         @echo ""
    71 
    72 $(LIB)/%.$(ARCH).a:
    73         @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    74         rm -f $@
    75         ar rcv $@ $^
    76         $(RANLIB) $@
    77         @echo "compiled library $*"
    78         @echo ""
    79 
    80 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a
    81         @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi
    82         @echo ""
    83         rm -f $@
    84         cp $^ $@
    85 
    86 clean:
    87         rm -f $(BIN)/*.$(ARCH)
    88         rm -f $(LIB)/*.$(ARCH).a
    89         rm -f `find . -name "*.o"`
    90         rm -f `find . -name "*~"`
    91         rm -f `find . -name "#*"`
    92 
    93 dist: clean
    94         rm -f $(BIN)/*
    95         rm -f $(LIB)/*
    96 
    97 lib%.clean:
    98         rm -f $(LIB)/lib$*.$(ARCH).a
    99         rm -f $($*)
    100         @echo ""
    101 
    102 %.clean:
    103         rm -f $(BIN)/$*.$(ARCH)
    104         @echo ""
    105 
    106 %.$(ARCH).o : %.c
    107         $(CC) $(CFLAGS) -c $*.c -o $@
    108 
    109 %.help:
    110         @if [ ! -d $(DESTHLP) ]; then mkdir -p $(DESTHLP); fi
    111         rm -f $(HOME)/$*/help/*~
    112         rm -f $(HOME)/$*/help/#*
    113         for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
     55include ../Makefile.Common
Note: See TracChangeset for help on using the changeset viewer.