From 15787dee79bdc58900572e4ce0cd855c591bfe0d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 8 Dec 2012 18:21:12 -0700 Subject: [PATCH] Got it scaling right, finally. Sheesh. --- Makefile | 7 +++++-- main.xml.m4 | 43 +++++++++++++++++++++++++++++++++++++++++++ res/layout/main.xml | 14 -------------- 3 files changed, 48 insertions(+), 16 deletions(-) create mode 100644 main.xml.m4 delete mode 100644 res/layout/main.xml diff --git a/Makefile b/Makefile index 3429d9a..b220cb2 100644 --- a/Makefile +++ b/Makefile @@ -18,14 +18,17 @@ release-install: bin/PenaltyTimer-release.apk clean: ant clean +res/layout/main.xml: main.xml.m4 + m4 $< > $@ + bin/PenaltyTimer-release.apk: bin/PenaltyTimer-release-unaligned.apk $(ZIPALIGN) -f 4 $< $@ bin/PenaltyTimer-release-unaligned.apk: bin/PenaltyTimer-release-unsigned.apk jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore $(KEYSTORE) -signedjar $@ $< $(ALIAS) -bin/PenaltyTimer-release-unsigned.apk: src/org/woozle/penaltytimer/* res/*/* +bin/PenaltyTimer-release-unsigned.apk: src/org/woozle/penaltytimer/* res/*/* res/layout/main.xml ant release -bin/PenaltyTimer-debug.apk: src/org/woozle/penaltytimer/* res/*/* +bin/PenaltyTimer-debug.apk: src/org/woozle/penaltytimer/* res/*/* res/layout/main.xml ant debug diff --git a/main.xml.m4 b/main.xml.m4 new file mode 100644 index 0000000..f81110e --- /dev/null +++ b/main.xml.m4 @@ -0,0 +1,43 @@ + + +define(row, ` +