[go: up one dir, main page]

Menu

[628da0]: / core / Makefile  Maximize  Restore  History

Download this file

24 lines (17 with data), 528 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all
DEBUG=-g
OPTIMIZE=-O -g:none
all: clean Version.class Debugging.class LevelManager.class \
LevelGenerator.class
%.class: %.java
javac $(DEBUG) $<
Version.java:
version=$$(git log -1 --date=short|grep ^Date:|head -n 1|\
sed -n 's/.*\([0-9]\{4\}\)-\([0-9][0-9]\)-\([0-9][0-9]\).*/\1.\2.\3/p') && \
echo 'package domino.core;' >$@ && \
echo 'public class Version' >>$@ && \
echo '{ public static final String VERSION="'$$version'";}' >>$@
clean:
rm -f *.class
release-clean:
rm -rf CVS .cvsignore *~