# Primitive Makefile. # Non-source code text files for the distribution: TEXTS = Makefile README TODO BUGS COPYING PROTOCOL WEB-HOWTO bkgomagic.el # Scripts to implement a web-based hosting system: SCRIPTS = list_servers.pl start_server.pl shutdown_server.pl start_applet.pl # Imagefiles for cuteness IMAGES = bkgo.jpg whitestone.jpg blackstone.jpg whitestone_score.jpg blackstone_score.jpg # This used to include swing.jar, but now no special libs are # necessary: LIBS = CLSSPTH=.:/usr/local/jdk/lib/classes.zip:$$CLASSPATH # For now, this has to be kept in sync here and in GoGame.java. But # ideally we'll set the version in one place and have the other place # figure it out. VERSION = 0.75 ### ### End vars, begin rules: ### ## Default rule: all: bkgo GoServer bkgo_applet ## Build rules: bkgo: bkgo.class GoServer: GoServer.class bkgo_applet: bkgo_applet.class bkgo.class: CLASSPATH=${CLSSPTH} javac bkgo.java GoServer.class: CLASSPATH=${CLSSPTH} javac GoServer.java bkgo_applet.class: CLASSPATH=${CLSSPTH} javac bkgo_applet.java ## Put any test programs here: ktest: ktest.class ktest.class: CLASSPATH=${CLSSPTH} javac ktest.java ktest-run: CLASSPATH=${CLSSPTH} java ktest ## Convenience rules: run: CLASSPATH=${CLSSPTH} java bkgo echo: @echo ${CLSSPTH} dist: bindist jar: jar cvf bkgo.jar *.class *.jpg srcdist: tar zcvf bkgo-${VERSION}.tar.gz ${TEXTS} ${SCRIPTS} ${IMAGES} ${LIBS} *.java bindist: all tar zcvf bkgo-${VERSION}.tar.gz ${TEXTS} ${SCRIPTS} ${IMAGES} ${LIBS} *.java *.class clean: rm -f *.class *~