Permalink
Browse files

move distribution stuff into DIST/ subdir

Need a fixed name so old versions can be easily removed.
  • Loading branch information...
1 parent fa4fe0d commit c0b28fa5e773437f9170d644d4eef5dcc93f121e @dklayer dklayer committed Nov 30, 2009
Showing with 12 additions and 13 deletions.
  1. +12 −13 makefile
View
25 makefile
@@ -15,29 +15,28 @@ build: FORCE
###############################################################################
## distribution building
-VERSION = 1.0m1
+VERSION = 1.0m1a
+SERVER_VERSION = 4.0m1a
-DISTDIR = agraph-4.0m1-client-java-$(VERSION)
+DISTDIR = agraph-$(SERVER_VERSION)-client-java-$(VERSION)
TARNAME = $(DISTDIR).tar.gz
TUTORIAL_FILES = kennedy.ntriples relative_rules.txt \
vc-db-1.rdf lesmis.rdf TutorialExamples.java
dist: FORCE
- rm -f *.tar.gz
- rm -fr $(DISTDIR)
- mkdir -p $(DISTDIR)
- cp -r dist/* dist/.[a-z]* $(DISTDIR)
- mkdir -p $(DISTDIR)/src/tutorial
+ rm -fr DIST
+ mkdir -p DIST/$(DISTDIR)
+ cp -r dist/* dist/.[a-z]* DIST/$(DISTDIR)
+ mkdir -p DIST/$(DISTDIR)/src/tutorial
for f in $(TUTORIAL_FILES); do \
echo copying src/tutorial/$$f...; \
- cp src/tutorial/$$f $(DISTDIR)/src/tutorial; \
+ cp src/tutorial/$$f DIST/$(DISTDIR)/src/tutorial; \
done
- mkdir -p $(DISTDIR)/doc
- cp src/tutorial/java-tutorial-40.html $(DISTDIR)/doc
- cp src/tutorial/*.jpg $(DISTDIR)/doc
- tar -c -h -z --owner=root --group=root -f $(TARNAME) $(DISTDIR)
-# rm -fr $(DISTDIR)
+ mkdir -p DIST/$(DISTDIR)/doc
+ cp src/tutorial/java-tutorial-40.html DIST/$(DISTDIR)/doc
+ cp src/tutorial/*.jpg DIST/$(DISTDIR)/doc
+ tar -c -h -z --owner=root --group=root -f DIST/$(TARNAME) -C DIST $(DISTDIR)
FORCE:

0 comments on commit c0b28fa

Please sign in to comment.