aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-09-21 05:02:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-09-21 05:02:56 +0000
commit8d40c6e367c09c948471577b04678ff31a08970f (patch)
treeeab2fd880651494689032d0688bdc028364f184c /packages
parentdfe415802789bf8b0cc7c982ce6af783634547d1 (diff)
setup separate pd_install targets, one for each the old and new build systems
svn path=/trunk/; revision=12419
Diffstat (limited to 'packages')
-rw-r--r--packages/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/packages/Makefile b/packages/Makefile
index 5db46a69..45c86b20 100644
--- a/packages/Makefile
+++ b/packages/Makefile
@@ -125,13 +125,21 @@ PD_BUILD_FLAGS =
HAVE_AUTOGEN_SH := $(wildcard $(pd_src)/autogen.sh)
# test for the new build system
ifeq (autogen.sh, $(findstring autogen.sh,$(HAVE_AUTOGEN_SH)))
+#----------------------------------------------------------------------------#
# new autotools build system
pd:
cd $(pd_src) \
&& ./autogen.sh \
&& ./configure $(PD_CONFIGURE_FLAGS) \
&& make $(DEST_PATHS) $(PD_BUILD_FLAGS)
+
+PD_NAME=Pd
+pd_install: pd
+ $(MAKE) -C $(pd_src) $(DEST_PATHS) $(PD_BUILD_FLAGS) install
+ install -d $(DESTDIR)$(manualsdir)/$(PD_NAME)
+ install -p $(pd_src)/src/notes.txt $(DESTDIR)$(manualsdir)/$(PD_NAME)
else
+#----------------------------------------------------------------------------#
# old build system
PD_AUTOCONF = autoconf
$(pd_src)/src/configure: $(pd_src)/src/configure.in
@@ -150,6 +158,12 @@ pd: $(pd_src)/src/configure
make OPT_CFLAGS="" depend && \
make $(DEST_PATHS) $(PD_BUILD_FLAGS)
+PD_NAME=Pd
+pd_install: pd
+ $(MAKE) -C $(pd_src)/src $(DEST_PATHS) $(PD_BUILD_FLAGS) install
+ install -d $(DESTDIR)$(manualsdir)/$(PD_NAME)
+ install -p $(pd_src)/src/notes.txt $(DESTDIR)$(manualsdir)/$(PD_NAME)
+
endif
@@ -267,14 +281,6 @@ endif
$(DESTDIR)$(prefix)/gripd
-#------------------------------------------------------------------------------
-# pd_install
-PD_NAME=Pd
-pd_install: pd
- $(MAKE) -C $(pd_src)/src $(DEST_PATHS) $(PD_BUILD_FLAGS) install
- install -d $(DESTDIR)$(manualsdir)/$(PD_NAME)
- install -p $(pd_src)/src/notes.txt $(DESTDIR)$(manualsdir)/$(PD_NAME)
-
#==============================================================================#
#
# GENERATE TEXT FILES FOR PACKAGE