mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 00:47:54 -05:00
34 lines
1.1 KiB
Makefile
Executable File
34 lines
1.1 KiB
Makefile
Executable File
#-------------------------------------------------------------------------------
|
|
ZXING_VERS = 2.0
|
|
ZXING_URL = http://zxing.googlecode.com/files/ZXing-$(ZXING_VERS).zip
|
|
|
|
#-------------------------------------------------------------------------------
|
|
all: help
|
|
|
|
#-------------------------------------------------------------------------------
|
|
build: tmp/zxing.zip
|
|
-@rm -rf zxing
|
|
mkdir zxing
|
|
cp -R tmp/zip/zxing-$(ZXING_VERS)/cpp/core/src/zxing/* zxing
|
|
python onefile-zxing.py zxing ..
|
|
# rm -rf zxing
|
|
|
|
#-------------------------------------------------------------------------------
|
|
tmp/zxing.zip:
|
|
-@rm -rf tmp
|
|
mkdir tmp
|
|
curl --output tmp/zxing.zip $(ZXING_URL)
|
|
unzip -d tmp/zip tmp/zxing.zip
|
|
|
|
#-------------------------------------------------------------------------------
|
|
watch:
|
|
run-when-changed "make build" *
|
|
|
|
#-------------------------------------------------------------------------------
|
|
help:
|
|
@echo make targets available:
|
|
@echo " help print this help"
|
|
@echo " watch run 'make build' when a file changes"
|
|
@echo " build build the zxing-all-in-one files"
|
|
|