IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15621


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

refine deps for autocode elements

Location:
trunk/Ohana/src
Files:
2 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
  • trunk/Ohana/src/libdvo/Makefile

    r15540 r15621  
    7070
    7171$(OBJS): $(INCS)
    72 $(AOBJS): $(ADEF)/autocode.c $(ADEF)/autocode.h $(AINC)/autocode.h
    73 
    74 $(AINC)/autocode.h: $(AINCS)
    75 
    76 $(DESTINC)/autocode.h: $(AINC)/autocode.h
    77         @if [ ! -d $(DESTINC) ]; then mkdir -p $(DESTINC); fi
    78         rm -f $@
    79         cp $< $@
    80 
    81 bar: $(DESTINC)/autocode.h
    82 
    83 foo:
    84         @echo $(DESTINC)/autocode.h
    85         @echo $(AINC)/autocode.h
    86         @echo $(AINCS)
    8772
    8873$(LIB)/libdvo.$(ARCH).a:  $(AOBJS) $(OBJS)
     
    9277$(DESTLIB)/libdvo.$(DLLTYPE): $(LIB)/libdvo.$(ARCH).$(DLLTYPE)
    9378
    94 $(ASRC)/%.c : $(ADEF)/%.d
     79# dependency rules for the autocode files
     80
     81$(AOBJS): $(ADEF)/autocode.c $(DESTINC)/autocode.h
     82
     83$(DESTINC)/autocode.h: $(AINC)/autocode.h
     84        @if [ ! -d $(DESTINC) ]; then mkdir -p $(DESTINC); fi
     85        rm -f $@
     86        cp $< $@
     87
     88$(AINC)/autocode.h: $(AINCS) $(ADEF)/autocode.h $(ADEF)/common.h
    9589        echo "make $@ from $^"
    9690        cd $(AUTO) && make $@
    9791
    98 $(ASRC)/%.$(ARCH).o : $(ASRC)/%.c
     92# generic rule for AINCS
     93$(AINC)/%.h : $(ADEF)/%.d $(ADEF)/autocode.h $(ADEF)/common.h
    9994        echo "make $@ from $^"
    10095        cd $(AUTO) && make $@
    10196
    102 $(AINC)/%.h : $(ADEF)/%.d
     97# generic rule for ASRC
     98$(ASRC)/%.c : $(ADEF)/%.d $(ADEF)/autocode.c $(AINC)/%.h
    10399        echo "make $@ from $^"
    104100        cd $(AUTO) && make $@
    105101
    106 $(AINC)/autocode.h: $(AINCS) $(ADEF)/common.h
     102# generic rule for AOBJS
     103$(ASRC)/%.$(ARCH).o : $(ASRC)/%.c
    107104        echo "make $@ from $^"
    108105        cd $(AUTO) && make $@
Note: See TracChangeset for help on using the changeset viewer.