joachim99@14: ### Makefile.common joachim99@14: ### joachim99@14: ### Copyright (C) 2002 by the KDE developers joachim99@14: joachim99@14: ### All the real work is done by the shellscript cvs.sh joachim99@2: joachim99@2: SHELL=/bin/sh joachim99@2: joachim99@14: cvs dist cvs-clean configure configure.in configure.files subdirs package-messages package-merge Makefile.am: joachim99@14: @admindir=$(admindir); \ joachim99@14: if test "x$$admindir" = x; then \ joachim99@14: admindir=.; until test -f $$admindir/admin/cvs.sh; do \ joachim99@14: admindir=$$admindir/..; \ joachim99@14: if test `cd $$admindir && pwd` = / ; then break; fi; \ joachim99@14: done; \ joachim99@14: admindir=$$admindir/admin; \ joachim99@14: if test -f $$admindir/cvs.sh; then :; else \ joachim99@14: echo "Can't find the admin/ directory in any parent of the"; \ joachim99@14: echo "current directory. Please set it with admindir=..."; \ joachim99@14: exit 1; \ joachim99@14: fi; \ joachim99@14: fi; \ joachim99@14: if test "$@" = "package-merge"; then \ joachim99@14: MAKE="$(MAKE)" POFILES="$(POFILES)" PACKAGE="$(PACKAGE)" \ joachim99@14: $(SHELL) $$admindir/cvs.sh package-merge ;\ joachim99@14: else MAKE="$(MAKE)" $(SHELL) $$admindir/cvs.sh $@ ;\ joachim99@2: fi joachim99@2: joachim99@2: configure.in: configure.files $(shell test -f configure.files && cat configure.files) subdirs joachim99@2: configure.files: subdirs joachim99@2: joachim99@2: .SILENT: joachim99@2: joachim99@14: .PHONY: cvs dist cvs-clean package-merge package-messages