]> mj.ucw.cz Git - eval.git/commitdiff
Released version 2.0
authorMartin Mares <mj@ucw.cz>
Mon, 24 Sep 2012 13:49:16 +0000 (15:49 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 24 Sep 2012 13:49:16 +0000 (15:49 +0200)
Makefile
README
doc/Makefile [deleted file]
isolate/Makefile
maint/release
maint/release.pm

index 6e52c470bfd9568e0e62197162539970d23bc931..86f91d8638841bc6541e6f50df461c8a21932ece 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
 VERSION=2.0
 
 # The default target
-all: runtree programs datafiles configs
+all:: runtree programs datafiles configs
 
 # Include configuration
 s=.
@@ -12,6 +12,10 @@ s=.
 obj/config.mk:
        @echo "You need to run configure first." && false
 
+ifdef CONFIG_DOC
+all:: docs
+endif
+
 # We will use the libucw build system
 BUILDSYS=$(s)/build
 include $(BUILDSYS)/Maketop
diff --git a/README b/README
index 59bb8188a48961c348c113c3d2a63e781884afb7..d0eb50922990e7e4dc452820655cde92d2373187 100644 (file)
--- a/README
+++ b/README
@@ -25,3 +25,6 @@ with others, please send them to mj@ucw.cz.
 First of all, edit default.cfg to choose which components should be built.
 
 Then run "./configure" and "make". This will place all compiled binaries in "run/".
+
+By default, documentation is built, which requires AsciiDoc to be present.
+You can skip documentation by "./configure -CONFIG_DOC".
diff --git a/doc/Makefile b/doc/Makefile
deleted file mode 100644 (file)
index 831cf9f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-install:
-       rsync -av --delete . jw:/var/www/moe/
index 3ebe9ac2b773ace37816272a23adefee1ef57377..011a005286b00970caad3e41b750c333635703e4 100644 (file)
@@ -3,10 +3,18 @@
 
 DIRS+=isolate
 PROGS+=$(o)/isolate/isolate
-DOCS+=$(o)/isolate/isolate.1
+
+DOCS+=$(o)/isolate/isolate.1 $(o)/isolate/isolate.1.html
+MAN1DIR=share/man/man1
+EXTRA_RUNDIRS+=$(MAN1DIR)
 
 $(o)/isolate/isolate: $(o)/isolate/isolate.o
 
 $(o)/isolate/isolate.1: $(s)/isolate/isolate.1.txt
        $(M)"MAN $<"
        $(Q)a2x -f manpage -D $(o)/isolate $<
+       $(Q)$(call symlink,$@,run/$(MAN1DIR))
+
+$(o)/isolate/isolate.1.html: $(s)/isolate/isolate.1.txt
+       $(M)"HTML $<"
+       $(Q)a2x -f xhtml -D $(o)/isolate $<
index a51ce4202953f2a82207c6740d6ca8af8ef55fba..4d189b1643b6c8233f4b9de96b23ebe29bc69e62 100755 (executable)
@@ -15,6 +15,7 @@ push @{$r->{"uploads"}}, {
        }, {
                "url" => "scp://jabberwock.ucw.cz/~ftp/pub/moe/"
        };
+$r->{'testmake'} = './configure mop/default.cfg && make -j4';
 $r->ParseOptions;
 $r->InitDist("maint/dist");
 $r->GenPackage;
index 85a074e6be35f0d3ecced472329f6b89a69f3127..9930c1489d290cd3e25b565b0e8b81c98dbcad5b 100644 (file)
@@ -30,6 +30,8 @@ sub new($$) {
                "archivedir" => "/home/mj/tmp/archives/$basename",
                "uploads" => [
                        ],
+               "testmake" => "make",
+               "testclean" => "make distclean",
                # Options
                "do_test" => 1,
                "do_patch" => 1,
@@ -242,13 +244,15 @@ sub Test($) {
        my $dd = $s->{"DISTDIR"};
        my $pkg = $s->{"PKG"};
        my $log = "$dd/$pkg.log";
+       my $make = $s->{'testmake'};
+       my $clean = $s->{'testclean'};
        print "Doing a test compilation\n";
-       `( cd $dd/$pkg && make ) >$log 2>&1`;
+       `( cd $dd/$pkg && $make ) >$log 2>&1`;
        die "There were errors. Please inspect $log" if $?;
        `grep -q [Ww]arning $log`;
        $? or print "There were warnings! Please inspect $log.\n";
        print "Cleaning up\n";
-       `cd $dd/$pkg && make distclean`; die if $?;
+       `cd $dd/$pkg && $clean`; die if $?;
 }
 
 sub MakePatch($) {