VERSION=2.0
# The default target
-all: runtree programs datafiles configs
+all:: runtree programs datafiles configs
# Include configuration
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
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".
+++ /dev/null
-install:
- rsync -av --delete . jw:/var/www/moe/
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 $<
}, {
"url" => "scp://jabberwock.ucw.cz/~ftp/pub/moe/"
};
+$r->{'testmake'} = './configure mop/default.cfg && make -j4';
$r->ParseOptions;
$r->InitDist("maint/dist");
$r->GenPackage;
"archivedir" => "/home/mj/tmp/archives/$basename",
"uploads" => [
],
+ "testmake" => "make",
+ "testclean" => "make distclean",
# Options
"do_test" => 1,
"do_patch" => 1,
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($) {