| 1 | ### Makefile.common |
| 2 | ### |
| 3 | ### Copyright (C) 2002 by the KDE developers |
| 4 | |
| 5 | ### All the real work is done by the shellscript cvs.sh |
| 6 | |
| 7 | SHELL=/bin/sh |
| 8 | |
| 9 | cvs dist cvs-clean configure.in configure.files subdirs package-messages package-merge: |
| 10 | @admindir=$(admindir); \ |
| 11 | if test "x$$admindir" = x; then \ |
| 12 | admindir=.; until test -f $$admindir/admin/cvs.sh; do \ |
| 13 | admindir=$$admindir/..; \ |
| 14 | if test `cd $$admindir && pwd` = / ; then break; fi; \ |
| 15 | done; \ |
| 16 | admindir=$$admindir/admin; \ |
| 17 | if test -f $$admindir/cvs.sh; then :; else \ |
| 18 | echo "Can't find the admin/ directory in any parent of the"; \ |
| 19 | echo "current directory. Please set it with admindir=..."; \ |
| 20 | exit 1; \ |
| 21 | fi; \ |
| 22 | fi; \ |
| 23 | if test "$@" = "package-merge"; then \ |
| 24 | MAKE=$(MAKE) POFILES="$(POFILES)" PACKAGE="$(PACKAGE)" \ |
| 25 | $(SHELL) $$admindir/cvs.sh package-merge ;\ |
| 26 | else MAKE=$(MAKE) $(SHELL) $$admindir/cvs.sh $@ ;\ |
| 27 | fi |
| 28 | |
| 29 | configure.in: configure.files $(shell test -f configure.files && cat configure.files) subdirs |
| 30 | configure.files: subdirs |
| 31 | |
| 32 | .SILENT: |
| 33 | |
| 34 | .PHONY: cvs dist cvs-clean package-merge package-messages |