forked from league/lzmajio
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
46 lines (32 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
LZMA_SDK_VERSION = 4.63
LZMA_JIO_MAJOR = 0
LZMA_JIO_MINOR = 95
LZMA_JIO_VERSION = $(LZMA_JIO_MAJOR).$(LZMA_JIO_MINOR)
JAR = jar
JAR_FILE = lzma-$(LZMA_SDK_VERSION)-jio-$(LZMA_JIO_VERSION).jar
DIST_NAME = lzmajio-$(LZMA_JIO_VERSION)
DIST_FILE = $(DIST_NAME).tar.gz
PACKAGE = net/contrapunctus/lzma
AUX_FILES = $(PACKAGE)/Version.java
default:
all: build $(AUX_FILES)
javac -d build $(shell find SevenZip -name '*.java') $(PACKAGE)/*.java
build:
-mkdir build
jar: $(JAR_FILE)
$(JAR_FILE): all
$(JAR) cf $@ CPL.html LGPL.txt -C build .
$(PACKAGE)/Version.java: Version.pl
darcs changes $(REPODIR) --context \
| perl $< $(LZMA_JIO_MAJOR) $(LZMA_JIO_MINOR) >$@
predist: $(AUX_FILES)
dist: $(DIST_FILE)
$(DIST_FILE):
REPODIR=--repodir=$$PWD darcs dist --dist-name $(DIST_NAME)
public: $(JAR_FILE) $(DIST_FILE)
scp $^ comsci.liu.edu:public_html/dist/lzmajio
clean:
$(RM) -r build $(AUX_FILES)
reallyclean: clean
$(RM) $(JAR_FILE) $(DIST_FILE)
.PHONY: default all build jar predist dist public clean reallyclean