#PREFIX = usually /usr/local (where to install the program)
#TEST = path to main test source to compile
#JAR_FLAGS += a list of things to pack, each usually prefixed with "-C bin/"
+#SJAR_FLAGS += a list of things to pack, each usually prefixed with "-C src/", for *-sources.jar files
JAVAC = javac
JAVAC_FLAGS += -encoding UTF-8 -d ./bin/ -cp ./src/ -Xdiags:verbose
mrpropre: clean
rm -f $(NAME).jar
+ rm -f $(NAME)-sources.jar
+ [ ! -e VERSION ] || rm -f "$(NAME)-`cat VERSION`.jar"
+ [ ! -e VERSION ] || rm -f "$(NAME)-`cat VERSION`-sources.jar"
love:
@echo " ...not war."
@[ -e bin/$(MAIN).class ] || echo You need to build the sources
@[ -e bin/$(MAIN).class ]
@echo Making JAR file...
+ @echo > bin/manifest
+ @[ "$(SJAR_FLAGS)" = "" ] || echo Creating $(NAME)-sources.jar...
+ @[ "$(SJAR_FLAGS)" = "" ] || $(JAR) cfm $(NAME)-sources.jar bin/manifest $(SJAR_FLAGS)
+ @[ "$(SJAR_FLAGS)" = "" ] || [ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`-sources.jar"...
+ @[ "$(SJAR_FLAGS)" = "" ] || [ ! -e VERSION ] || cp $(NAME)-sources.jar "$(NAME)-`cat VERSION`-sources.jar"
@echo "Main-Class: `echo "$(MAIN)" | sed 's:/:.:g'`" > bin/manifest
@echo >> bin/manifest
$(JAR) cfm $(NAME).jar bin/manifest $(JAR_FLAGS)
- @[ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`.jar"
+ @[ ! -e VERSION ] || echo Copying to "$(NAME)-`cat VERSION`.jar"...
@[ ! -e VERSION ] || cp $(NAME).jar "$(NAME)-`cat VERSION`.jar"
run:
Currently missing, but either in progress or planned:
- A GUI (work in progress)
-- A binary JAR release (and thus, version 1)
- Some readers other than CLI (TUI, GUI)
- Check if it can work on Android
- French translation
echo "MAIN = be/nikiroo/fanfix/Main" > Makefile
echo "NAME = fanfix" >> Makefile
echo "PREFIX = $PREFIX" >> Makefile
-echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ src" >> Makefile
+echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ VERSION" >> Makefile
+#echo "SJAR_FLAGS += -C src/ org -C src/ be -C ./ LICENSE -C ./ README.md -C ./ VERSION" >> Makefile
cat Makefile.base >> Makefile
import be.nikiroo.fanfix.supported.BasicSupport.SupportType;
/**
- * Command line {@link Story} reader.
+ * The class that handles the different {@link Story} readers you can use.
* <p>
- * Will output stories to the console.
+ * All the readers should be accessed via {@link BasicReader#getReader()}.
*
* @author niki
*/
public static BasicReader getReader() {
if (defaultType != null) {
switch (defaultType) {
- //case LOCAL:
- //return new LocalReader().setType(ReaderType.LOCAL);
+ // case LOCAL:
+ // return new LocalReader().setType(ReaderType.LOCAL);
case CLI:
return new CliReader().setType(ReaderType.CLI);
}