diff options
Diffstat (limited to 'Makefile.cvs')
-rw-r--r-- | Makefile.cvs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.cvs b/Makefile.cvs index ff0b86a..fe1e959 100644 --- a/Makefile.cvs +++ b/Makefile.cvs @@ -3,9 +3,14 @@ AUTOMAKEFILES = conf/mkinstalldirs conf/missing conf/install-sh CONFIGHIN = include/config.h.in ACLOCAL = conf/aclocal.m4 GETTEXT = intl/Makefile.in +KDEVER=$(shell kde-config -v | grep -q "KDE: 3" && echo 3 || echo 2) +ifeq ($(KDEVER),3) +AM_EDIT_ARGS=--kde3 +endif all: @echo "Use make devel for development, make dist for distribution" + @echo $(KDEVER) build: devel ./configure --prefix=/usr --mandir=/usr/share/man --enable-debug --enable-kde @@ -46,4 +51,4 @@ $(GETTEXT): $(ACLOCAL) $(AUTOMAKEFILES): $(ACLOCAL) $(CONFIGHIN) automake --add-missing - make -C kde2 -f Makefile.am am_edit + make AM_EDIT_ARGS=$(AM_EDIT_ARGS) -C kde2 -f Makefile.am am_edit |