Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (32 sloc) 1.607 kB
UNAME = $(shell (uname -o 2>/dev/null||uname -s 2>/dev/null)|tr 'A-Z/' 'a-z-')
include $(UNAME).mk
scratch/components/%:
@test -f scratch/components/$* || (echo $* missing; exit 1)
scratch: ${ALL_OBJECTS}
mkdir -p ${SCRATCH_PATH}/components ${SCRATCH_PATH}/content \
${SCRATCH_PATH}/defaults/preferences ${SCRATCH_PATH}/locale
cp src/chrome.manifest src/install.rdf ${SCRATCH_PATH}
cp src/content/* ${SCRATCH_PATH}/content
cp -r src/locale/* ${SCRATCH_PATH}/locale
cp src/defaults.js ${SCRATCH_PATH}/defaults/preferences
cp idl/IDNSSD.xpt ${SCRATCH_PATH}/components
cp src/DNSSDServiceTracker.js ${SCRATCH_PATH}/components
@cp -v c_src/DNSSDService.dylib ${SCRATCH_PATH}/components || \
echo "!! WARNING !! DNSSDService.dylib missing"
@cp -v c_src/DNSSDService.dll ${SCRATCH_PATH}/components || \
echo "!! WARNING !! DNSSDService.dll missing"
@cp -v c_src/DNSSDService.so ${SCRATCH_PATH}/components || \
echo "!! WARNING !! DNSSDService.so missing"
@cp -v c_src/DNSSDService64.so ${SCRATCH_PATH}/components || \
echo "!! WARNING !! DNSSDService64.so missing"
xpi:
@test -f scratch/components/DNSSDService.dylib || \
echo "!! WARNING !! DNSSDService.dylib missing"
@test -f scratch/components/DNSSDService.dll || \
echo "!! WARNING !! DNSSDService.dll missing"
@test -f scratch/components/DNSSDService.so || \
echo "!! WARNING !! DNSSDService.so missing"
@test -f scratch/components/DNSSDService64.so || \
echo "!! WARNING !! DNSSDService64.so missing"
cd scratch && \
zip -r ../dnssd-$(shell sed -n 's/.*em:version="\(.*\)".*/\1/p' ${SCRATCH_PATH}/install.rdf).xpi *
Jump to Line
Something went wrong with that request. Please try again.