summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-11-02 11:34:02 -0400
committerRob Crittenden <rcritten@redhat.com>2007-11-02 11:34:02 -0400
commitc54826653f7b77d68d5c12410b92303d3fc524aa (patch)
tree2dbc48156ef4b31ebaef7554a31149f2d7444dcf /Makefile
parentdc01ea0fe6677201835cbf67a780eb9d06f8d3db (diff)
downloadfreeipa-c54826653f7b77d68d5c12410b92303d3fc524aa.tar.gz
freeipa-c54826653f7b77d68d5c12410b92303d3fc524aa.tar.xz
freeipa-c54826653f7b77d68d5c12410b92303d3fc524aa.zip
'make all' needs to depend on autogen.sh but we don't want to re-run it
on every iteration. This lets the top-level 'make install' work properly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8965c36a2..66eeeb119 100644
--- a/Makefile
+++ b/Makefile
@@ -35,14 +35,14 @@ CLI_VERSION=$(CLI_MAJOR).$(CLI_MINOR).$(CLI_RELEASE)
CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-$(CLI_VERSION)
CLI_TARBALL=$(CLI_TARBALL_PREFIX).tgz
-all:
+all: autogen
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
autogen:
- cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc
- cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc
+ cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
+ cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
configure:
cd ipa-server; ./configure --prefix=/usr --sysconfdir=/etc