aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
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