Ignore:
Timestamp:
2008-05-19T15:54:46+12:00 (16 years ago)
Author:
mdewsnip
Message:

More tidy ups to all the Makefiles, this time to tidy up the targets and add comments about the default target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/z3950/Makefile.in

    r15550 r15579  
    9090LIBRARY = gsdlz3950.a
    9191
    92 gsdlz3950.a: $(LIBRARY_OBJECTS)
    93     rm -f gsdlz3950.a
    94     $(AR) cru gsdlz3950.a $(LIBRARY_OBJECTS) $(PACKAGES_DIR)/yaz/yaz-2.1.4/client/tabcomplete.o
    95     $(RANLIB) gsdlz3950.a
    96 
    97 
    9892SOURCES = \
    9993    z3950explain.cpp \
     
    125119
    126120
    127 z3950server: $(OBJECTS)
     121# Default target: make both gsdlz3950.a and the z3950server executable
     122all: $(LIBRARY) $(EXECUTABLE)
     123
     124gsdlz3950.a: $(LIBRARY_OBJECTS)
     125    rm -f $(LIBRARY)
     126    $(AR) cru $(LIBRARY) $(LIBRARY_OBJECTS) $(PACKAGES_DIR)/yaz/yaz-2.1.4/client/tabcomplete.o
     127    $(RANLIB) $(LIBRARY)
     128
     129z3950server: $(EXECUTABLE_OBJECTS)
    128130    $(CPPLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
    129131
    130 all: $(LIBRARY) $(EXECUTABLE)
    131 
    132 install: $(LIBRARY) $(EXECUTABLE)
     132install: $(EXECUTABLE)
    133133    $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/bin/$(GSDLOS)
    134134
    135135clean:
    136     rm -f $(OBJECTS)
     136    rm -f $(OBJECTS) $(LIBRARY) $(EXECUTABLE)
    137137
    138138distclean:
    139     rm -f $(OBJECTS) Makefile
     139    rm -f $(OBJECTS) $(LIBRARY) $(EXECUTABLE) Makefile
    140140
    141141depend:
Note: See TracChangeset for help on using the changeset viewer.