Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

makefile support for copying bundles to web server

darcs-hash:20070418155225-e5a07-aae743a95069ecf07a9422e04a8995b794d4fb29.gz
  • Loading branch information...
commit 74c49bae12d81c912fe4bed250dccb8a347a96bb 1 parent af2fbc2
@league authored
Showing with 13 additions and 5 deletions.
  1. +12 −4 Makefile
  2. +1 −1  Version.pl
View
16 Makefile
@@ -5,7 +5,8 @@ LZMA_JIO_VERSION = $(LZMA_JIO_MAJOR).$(LZMA_JIO_MINOR)
JAR = jar
JAR_FILE = lzma-$(LZMA_SDK_VERSION)-jio-$(LZMA_JIO_VERSION).jar
-DIST_FILE = lzmajio-$(LZMA_JIO_VERSION)
+DIST_NAME = lzmajio-$(LZMA_JIO_VERSION)
+DIST_FILE = $(DIST_NAME).tar.gz
AUX_FILES = Version.java
default:
@@ -27,11 +28,18 @@ Version.java: Version.pl
predist: $(AUX_FILES)
-dist:
- REPODIR=--repodir=$$PWD darcs dist --dist-name $(DIST_FILE)
+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).tar.gz
+ $(RM) $(JAR_FILE) $(DIST_FILE)
+
+.PHONY: default all build jar predist dist public clean reallyclean
View
2  Version.pl
@@ -34,7 +34,7 @@ package net.contrapunctus.lzma;
print <<EOF;
public static void main( String[] args ) {
if( args.length > 0 ) System.out.println(context);
- else System.out.printf("lzma-jiostream-%d.%d%n", major, minor);
+ else System.out.printf("lzmajio-%d.%d%n", major, minor);
}
}
EOF
Please sign in to comment.
Something went wrong with that request. Please try again.