Changeset 198 for trunk/Makefile


Ignore:
Timestamp:
Apr 4, 2006, 8:23:19 PM (16 years ago)
Author:
titer
Message:

Nicer make output. Also moved the CLI client to its own folder like
other interfaces.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 transmissioncli
        21Makefile.config
        32.depend
  • trunk/Makefile

    r191 r198  
    44ifneq ($(SYSTEM),Darwin)
    55
    6 SRCS = transmissioncli.c
    7 OBJS = $(SRCS:%.c=%.o)
    8 
    9 CFLAGS += -Ilibtransmission
    10 
    11 all: transmissioncli transmission-gtk transmission-beos
    12 
    13 lib:
    14         $(MAKE) -C libtransmission
    15 
    16 transmissioncli: lib $(OBJS)
    17         $(CC) -o $@ $(OBJS) libtransmission/libtransmission.a $(LDFLAGS)
    18 
    19 transmission-gtk:
     6TARGETS = .cli
    207ifeq ($(GTK),yes)
    21         $(MAKE) -C gtk
     8TARGETS += .gtk
     9endif
     10ifeq ($(SYSTEM),BeOS)
     11TARGETS += .beos
    2212endif
    2313
    24 transmission-beos:
    25 ifeq ($(SYSTEM),BeOS)
    26         $(MAKE) -C beos
    27 endif
     14all: $(TARGETS)
    2815
    29 %.o: %.c Makefile.config Makefile.common Makefile
    30         $(CC) $(CFLAGS) -o $@ -c $<
     16.lib:
     17        @echo "* Building libtransmission"
     18        @$(MAKE) -C libtransmission $(MAKESHUTUP)
     19
     20.cli: .lib
     21        @echo "* Building Transmission CLI client"
     22        @$(MAKE) -C cli $(MAKESHUTUP)
     23
     24.gtk: .lib
     25        @echo "* Building Transmission GTK+ client"
     26        @$(MAKE) -C gtk $(MAKESHUTUP)
     27
     28.beos: .lib
     29        @echo "* Building Transmission BeOS client"
     30        @make -C beos $(MAKESHUTUP)
    3131
    3232clean:
    33         $(RM) transmissioncli $(OBJS)
    34         $(MAKE) -C libtransmission clean
     33        @$(MAKE) -C libtransmission clean $(MAKESHUTUP)
     34        @$(MAKE) -C cli clean $(MAKESHUTUP)
    3535ifeq ($(GTK),yes)
    36         $(MAKE) -C gtk clean
     36        @$(MAKE) -C gtk clean $(MAKESHUTUP)
    3737endif
    3838ifeq ($(SYSTEM),BeOS)
    39         $(MAKE) -C beos clean
     39        @$(MAKE) -C beos clean $(MAKESHUTUP)
    4040endif
    41 
    42 .depend: $(SRCS) Makefile
    43         $(RM) .depend
    44         $(foreach SRC, $(SRCS), $(CC) -MM -Ilibtransmission $(SRC) >> .depend;)
    45 
    46 include .depend
    4741
    4842else
    4943
    5044all:
    51         make -C macosx
     45        $(MAKE) -C macosx
    5246        xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
    5347
    5448clean:
    5549        xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
    56         make -C macosx clean
     50        $(MAKE) -C macosx clean
    5751
    5852MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
     
    6256            Transmission-$(VERSION_STRING).dmg && \
    6357          mkdir -p tmp && \
    64           cp -r Transmission.app tmp/ && \
     58          cp -r macosx/Transmission.app tmp/ && \
    6559          cp AUTHORS tmp/AUTHORS.txt && \
    6660          cp LICENSE tmp/LICENSE.txt && \
Note: See TracChangeset for help on using the changeset viewer.