Browse files

Improves makefile packaging

  • Loading branch information...
1 parent 883cd95 commit 2dafd8d32c85207dd553b79b9c8ff9f42aa167a6 Steve Pomeroy committed Aug 3, 2011
Showing with 14 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +13 −4 Makefile
View
1 .gitignore
@@ -4,3 +4,4 @@ gen/*
deploy/*
errors/*
*.swp
+README.html
View
17 Makefile
@@ -1,13 +1,22 @@
lang=it en
# the name of the directory that Locast has been extracted to
-srcdir=Locast
+srcdir = Locast
+version := $(shell sed '/versionName/ { s/.*versionName="\([^"]*\)".*/\1/; s/ /_/g; p }; d' AndroidManifest.xml)
+out_package := ../$(srcdir)_$(version).tar.gz
+
+all: README.html export_strings import_strings
+package: $(out_package)
+
+######################################################
export_strings:
a2po export --no-template --ignore-fuzzy $(lang)
import_strings:
a2po import --ignore-fuzzy
-package: ../locast_android.tar.gz
-../locast_android.tar.gz:
- tar -zcv --exclude .git --exclude bin/\* --exclude-vcs --exclude deploy/\* --exclude gen/\* --exclude \*\~ --exclude-backups --exclude \*.tar.gz -X .gitignore -f $@ -C ../ $(srcdir)
+%.html: %.md
+ markdown $< > $@
+
+$(out_package): .
+ tar -zcv --exclude .git --exclude-vcs --exclude-backups -X .gitignore -f $@ -C ../ $(srcdir)

0 comments on commit 2dafd8d

Please sign in to comment.