Changeset 226 for trunk/Makefile


Ignore:
Timestamp:
Apr 9, 2006, 2:02:54 PM (16 years ago)
Author:
titer
Message:

"make package" now doesn't strip debug symbols anymore, so bug reports
on the nightlies should be more useful. Use "make package-release" to
build a stripped package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r205 r226  
    5454        @$(MAKE) -C macosx clean
    5555
    56 MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
     56MAKELINK = printf "[InternetShortcut]\nURL=http://transmission.m0k.org%s\n"
     57define PACKAGE_RULE1
     58        $(RM) tmp "Transmission $(VERSION_STRING)" \
     59          Transmission-$(VERSION_STRING).dmg
     60        mkdir -p tmp
     61        cp -r macosx/Transmission.app tmp/
     62        cp AUTHORS tmp/AUTHORS.txt
     63        cp LICENSE tmp/LICENSE.txt
     64        cp NEWS tmp/NEWS.txt
     65        $(MAKELINK) "/" > tmp/Homepage.url
     66        $(MAKELINK) "/forum" > tmp/Forums.url
     67        $(MAKELINK) "/contribute.php" > tmp/Contribute.url
     68endef
     69define PACKAGE_RULE2
     70        mv tmp "Transmission $(VERSION_STRING)"
     71        hdiutil create -format UDZO -srcfolder \
     72          "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg
     73        rm -rf "Transmission $(VERSION_STRING)"
     74endef
    5775
    5876package:
    59         $(RM) tmp "Transmission $(VERSION_STRING)" \
    60             Transmission-$(VERSION_STRING).dmg && \
    61           mkdir -p tmp && \
    62           cp -r macosx/Transmission.app tmp/ && \
    63           cp AUTHORS tmp/AUTHORS.txt && \
    64           cp LICENSE tmp/LICENSE.txt && \
    65           cp NEWS tmp/NEWS.txt && \
    66           strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
    67           $(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
    68           $(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
    69           $(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
    70           mv tmp "Transmission $(VERSION_STRING)" && \
    71           hdiutil create -format UDZO -srcfolder \
    72             "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
    73           rm -rf "Transmission $(VERSION_STRING)"
     77        $(PACKAGE_RULE1)
     78        $(PACKAGE_RULE2)
     79
     80package-release:
     81        $(PACKAGE_RULE1)
     82        strip -S tmp/Transmission.app/Contents/MacOS/Transmission
     83        $(PACKAGE_RULE2)
    7484
    7585endif
Note: See TracChangeset for help on using the changeset viewer.