From e956db66e83df4931e413d25188d528926f14824 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 8 Dec 2008 18:33:21 +1030 Subject: [PATCH] Include Makefile, config.h, tools in all tarball. --- Makefile | 18 ++++++++++++------ web/staticall.php | 2 +- web/staticupload.php | 3 +-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 222a9b22..8a407728 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ -# Hacky makefile to compile everything and run the tests in some kind of sane order. -# V=--verbose for verbose tests. +# Hacky makefile to compile everything and run the tests in some kind +# of sane order. + +# Main targets: +# +# check: run tests on all ccan modules (use 'make check V=--verbose' for more) +# Includes building libccan.a. +# tools: build useful tools in tools/ dir. +# Especially tools/ccanlint/ccanlint and tools/namespacize. +# distclean: destroy everything back to pristine state # This can be overridden on cmdline to generate pages elsewhere. WEBDIR=~/www/html/ccan/ @@ -40,8 +48,8 @@ $(WEBDIR)/junkcode/%.html: $(WEBDIR)/junkcode/%.tar.bz2 $(ALL_DIRS): @touch $@ -$(WEBDIR)/ccan.tar.bz2: - tar cvfj $@ `bzr ls --versioned --kind=file ccan` +$(WEBDIR)/ccan.tar.bz2: config.h Makefile Makefile-ccan $(shell bzr ls --versioned --kind=file ccan) $(shell bzr ls --versioned --kind=file tools) + tar cvfj $@ $^ $(ALL_PAGES): tools/doc_extract web/staticmoduleinfo.php @@ -88,8 +96,6 @@ test-ccan/%:: tools/run_tests @echo Testing $*... @if tools/run_tests $(V) ccan/$* | grep ^'not ok'; then exit 1; else exit 0; fi -ccanlint: tools/ccanlint/ccanlint - clean: tools-clean $(RM) `find . -name '*.o'` `find . -name '.depends'` `find . -name '*.a'` `find . -name _info` $(RM) inter-depends lib-depends test-depends diff --git a/web/staticall.php b/web/staticall.php index 60f7fa77..d93a26f2 100644 --- a/web/staticall.php +++ b/web/staticall.php @@ -16,7 +16,7 @@ download.

-Or you can just download the tarball of everything (K). +Or you can just download the tarball of everything including CCAN tools (K).

diff --git a/web/staticupload.php b/web/staticupload.php index d1252e16..998ca21c 100644 --- a/web/staticupload.php +++ b/web/staticupload.php @@ -16,8 +16,7 @@ Got C code sitting around which might help someone? Put it to work by uploading here; .tar.gz, .zip or even single C files.

-

-If it has a valid _info.c file and a testsuite, it'll go into the +

If it has a valid _info.c file and a testsuite (see the module creation guide), it'll go into the main repository. Otherwise, it'll go into our "junkcode" area where people can browse and download it.

-- 2.39.2