From b013316d2ff367232c03d796c1c86f09e6e229df Mon Sep 17 00:00:00 2001 From: "Troy A. Griffitts" Date: Wed, 7 Nov 2007 16:49:12 +0000 Subject: Added lessons target to makefile Changed lessons to be %.3 padded git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@117 07627401-56e2-0310-80f4-f8cd0041bdcd --- flashtools/Makefile | 8 +++++++- flashtools/flash.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'flashtools') diff --git a/flashtools/Makefile b/flashtools/Makefile index dc41e0a..dc6a60d 100644 --- a/flashtools/Makefile +++ b/flashtools/Makefile @@ -1,11 +1,17 @@ TARGETS= flash all: $(TARGETS) - mkdir -p hebFreq hebFreqKJV greekFreq greekFreqKJV clean: rm -rf hebFreq hebFreqKJV greekFreq greekFreqKJV rm $(TARGETS) +lessons: + mkdir -p hebFreq hebFreqKJV greekFreq greekFreqKJV + ./flash -o hebFreq -w 25 -d m -r Gen-Mal + ./flash -o hebFreqKJV -w 25 -d k -r Gen-Mal + ./flash -o greekFreq -w 25 -d m -r Mat-Rev + ./flash -o greekFreqKJV -w 25 -d k -r Mat-Rev + .cpp: g++ -g `pkg-config --cflags sword` $< -o $@ `pkg-config --libs sword` diff --git a/flashtools/flash.cpp b/flashtools/flash.cpp index 6ec9d7b..1167166 100644 --- a/flashtools/flash.cpp +++ b/flashtools/flash.cpp @@ -211,7 +211,7 @@ void outputFlash(const vector &wordList, const char *outputDir = ".", bool if (!wordCount) { SWBuf fname = outputDir; fname += "/lesson"; - fname.appendFormatted("%d", lessonNumber); + fname.appendFormatted("%.3d", lessonNumber); fname += ".flash"; ofile.open(fname); startFreq = w.freq; -- cgit