IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 15, 2007, 9:29:47 AM (19 years ago)
Author:
eugene
Message:

refine deps for autocode elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/Makefile

    r15601 r15621  
    4646$(DESTINC)/autocode.h : $(INC)/autocode.h
    4747
    48 $(AOBJS): $(INC)/autocode.h
     48$(AOBJS): $(DEF)/autocode.c $(DESTINC)/autocode.h
    4949
    50 $(INC)/autocode.h: $(AINCS) $(DEF)/common.h
     50$(INC)/autocode.h: $(AINCS) $(DEF)/autocode.h $(DEF)/common.h
    5151        cat $(DEF)/common.h >  $(INC)/autocode.h
    5252        cat $(AINCS)        >> $(INC)/autocode.h
     
    5454        @echo done with autocode.h
    5555
     56$(INC)/%.h: $(DEF)/%.d $(DEF)/autocode.h $(DEF)/common.h
     57        @if [ ! -d $(INC) ]; then mkdir -p $(INC); fi
     58        ./generate $< $(DEF)/autocode.h $@
     59
     60$(SRC)/%.c: $(DEF)/%.d $(DEF)/autocode.c $(INC)/%.h
     61        @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi
     62        ./generate $< $(DEF)/autocode.c $@
     63
    5664$(TEX)/%.tex: $(DEF)/%.d $(DEF)/autocode.tex
    5765        @if [ ! -d $(TEX) ]; then mkdir -p $(TEX); fi
    5866        ./generate $< $(DEF)/autocode.tex $@
    59 
    60 $(INC)/%.h: $(DEF)/%.d $(DEF)/autocode.h
    61         @if [ ! -d $(INC) ]; then mkdir -p $(INC); fi
    62         ./generate $< $(DEF)/autocode.h $@
    63 
    64 $(SRC)/%.c: $(DEF)/%.d $(DEF)/autocode.c
    65         @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi
    66         ./generate $< $(DEF)/autocode.c $@
    6767
    6868clean:  cleandef
Note: See TracChangeset for help on using the changeset viewer.