diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-01-23 09:54:20 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-01-23 09:54:20 +0000 |
commit | ee1307e582cedbfb02559b7e2862942bb2fe6385 (patch) | |
tree | 30b83984ff694587f009aeb84b8ca00ed2936777 /Makefile.in | |
parent | 42621239c2ce1287072e90cf10242dc2e2e47f34 (diff) | |
download | quilt-ee1307e582cedbfb02559b7e2862942bb2fe6385.tar.gz |
- A better rule for test/.depend.
- In order to run make check immediately after configure, a few
minor dependencies need to be added.
- The test suite depends on the compat layer and backup-files.
- quilt/refresh depends on remove-trailing-ws.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/Makefile.in b/Makefile.in index b9e2dd0..9394578 100644 --- a/Makefile.in +++ b/Makefile.in @@ -133,7 +133,7 @@ export QUILT_DIR QUILT_LIB QUILTRC all : scripts compat $(DOC:%=doc/%) $(MAN1) mofiles -lib/backup-files :: $(LIBOBJS) +$(LIB:%=lib/%) :: $(LIBOBJS) ifeq ($(USE_NLS),yes) mofiles : $(LINGUAS:%=po/%.mo) @@ -369,31 +369,13 @@ endif # (test|check) # Include a run-time generated list of dependencies for each test case test/.depend : Makefile $(TESTS) - @$(AWK) ' \ - { if (FNR==1) { c=0; print "" } } \ - sub(/.*\$$ *quilt /, "") { \ - if (c==0) { \ - c=1; \ - test=gensub(/.*\/(.*)\..*/, "\\1", "", FILENAME); \ - deps[test,$$1]=1; \ - printf "test/."test".ok:: bin/quilt quilt/scripts/patchfns quilt/"$$1; \ - } else if (c>0 && ! ((test,$$1) in deps)) { \ - printf " quilt/"$$1; deps[test,$$1]=1; \ - } \ - } ; \ - END { print "" } \ - ' $(TESTS) > $@ - @$(AWK) ' \ - sub(/.*\<quilt_command /, "") && ($$1 !~ /[^a-z]/) { \ - if (file==FILENAME) \ - printf " quilt/"$$1; \ - else { \ - file=FILENAME; \ - printf "\n"FILENAME" :: quilt/"$$1; \ - } \ - } ; \ - END { print "" } \ - ' quilt/*.in >> $@ + @( printf "%s :: bin/quilt quilt/scripts/patchfns $(LIB:%=lib/%) $(COMPAT)\n" $(TESTS); \ + $(AWK) 'sub(/.*\$$ *quilt /, "") \ + { print FILENAME, "::", "quilt/"$$1}' $(TESTS); \ + $(AWK) 'sub(/.*\<quilt_command /, "") && ($$1 !~ /[^a-z]/) \ + { print FILENAME, "::", "quilt/"$$1 }' quilt/*.in; \ + echo "quilt/refresh :: quilt/scripts/remove-trailing-ws" \ + ) | sort -u | $(SED) -re 's:^test/(.*)\.test:test/.\1.ok:' > $@ ifneq ($(shell . $(QUILTRC) ; echo $$QUILT_PATCHES_PREFIX),) CHECK_ENV := P=patches/; _P=../patches/; export P _P |