[PD-cvs] extensions Makefile,NONE,1.1 Makefile.buildlayout,1.1,1.2
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Mon Nov 28 03:32:35 CET 2005
Update of /cvsroot/pure-data/extensions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27410
Modified Files:
Makefile.buildlayout
Added Files:
Makefile
Log Message:
added gripd docs and gui/ix to the build system
--- NEW FILE: Makefile ---
#==============================================================================#
#
# Centralized build system for "extensions".
#
# see for instructions: http://puredata.org/docs/developer/build
# <hans at at.or.at>
#
#==============================================================================#
CWD := $(shell pwd)
# these are designed to be overridden by the packages/Makefile
cvs_root_dir = $(CWD)/..
prefix = build
BUILDLAYOUT_DIR = $(CWD)
# default target
all: gripd
include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
#==============================================================================#
#
# OVERARCHING BUILD TARGETS
#
#==============================================================================#
# clean up after everything is installed
final_setup:
chmod -R ugo-w $(pddocdir)
install: gripd_install ix_install
@echo " "
@echo "extensions install succeeded!"
#==============================================================================#
#
# PROJECT-SPECIFIC TARGETS
#
#==============================================================================#
#------------------------------------------------------------------------------#
# GRIPD
GRIPD_NAME = gripd
gripd:
gripd_install:
install -d $(helpdir)
install -p $(extensions_src)/gripd/examples/gripd.pd \
$(helpdir)/gripd-help.pd
install -d $(manualsdir)/$(GRIPD_NAME)
install -p $(extensions_src)/gripd/README.txt \
$(manualsdir)/$(GRIPD_NAME)
install -d $(examplesdir)/$(GRIPD_NAME)
install -p $(extensions_src)/gripd/examples/*.* \
$(examplesdir)/$(GRIPD_NAME)
#------------------------------------------------------------------------------#
# IX
IX_NAME = ix
ix_install:
install -d $(objectsdir)/$(IX_NAME)
install -p $(extensions_src)/gui/ix/*.wid $(objectsdir)/$(IX_NAME)
install -d $(manualsdir)/$(IX_NAME)
install -p $(extensions_src)/gui/ix/README \
$(manualsdir)/$(IX_NAME)/README.txt
install -d $(examplesdir)/$(IX_NAME)
install -p $(extensions_src)/gui/ix/*.pd $(examplesdir)/$(IX_NAME)
#==============================================================================#
#
# DEVELOPER'S TARGETS
#
#==============================================================================#
# make the symlinks necessary to simulate the installed environment
devsymlinks:
#==============================================================================#
#
# CLEAN TARGETS
#
#==============================================================================#
# the destination-specific clean targets are in Makefile.buildlayout
clean: install_clean
distclean: clean cruft_clean
Index: Makefile.buildlayout
===================================================================
RCS file: /cvsroot/pure-data/extensions/Makefile.buildlayout,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Makefile.buildlayout 23 Nov 2005 06:52:29 -0000 1.1
--- Makefile.buildlayout 28 Nov 2005 02:32:31 -0000 1.2
***************
*** 10,29 ****
# kept in each section of the CVS so that each section will be self-contained.
# To use it, you need to include it in your Makefile (i.e. "include
! # Makefile.buildlayout") and then define $(INSTALL_PREFIX) and $(SRC_ROOT_DIR).
#
! # $(SRC_ROOT_DIR) is the base directory of src tree, equivalent to the root
# level of the pure-data CVS.
#
! # $(INSTALL_PREFIX) is the base directory to where all of the resulting files
# will be copied.
#
# This file is currently located in these places:
# abstractions
! # externals/build
# packages
# doc
#
# it will be going here too:
- # extensions
# gem
# pd
--- 10,29 ----
# kept in each section of the CVS so that each section will be self-contained.
# To use it, you need to include it in your Makefile (i.e. "include
! # Makefile.buildlayout") and then define $(prefix) and $(cvs_root_dir).
#
! # $(cvs_root_dir) is the base directory of src tree, equivalent to the root
# level of the pure-data CVS.
#
! # $(prefix) is the base directory to where all of the resulting files
# will be copied.
#
# This file is currently located in these places:
# abstractions
! # extensions
! # externals
# packages
# doc
#
# it will be going here too:
# gem
# pd
***************
*** 64,88 ****
# sources
! ABSTRACTIONS_SRC = $(SRC_ROOT_DIR)/abstractions
! DOC_SRC = $(SRC_ROOT_DIR)/doc
! EXTERNALS_SRC = $(SRC_ROOT_DIR)/externals
! FLEXT_SRC = $(SRC_ROOT_DIR)/externals/grill/flext
! GEM_SRC = $(SRC_ROOT_DIR)/Gem
! GEMLIBS_SRC = $(SRC_ROOT_DIR)/GemLibs
! PACKAGES_SRC = $(SRC_ROOT_DIR)/packages
! PD_SRC = $(SRC_ROOT_DIR)/pd
! SCRIPTS_SRC = $(SRC_ROOT_DIR)/scripts
# destinations
! APPLICATIONS_DEST = $(DOCS_DEST)/examples
! BIN_DEST = $(INSTALL_PREFIX)/bin
! DOCS_DEST = $(INSTALL_PREFIX)/doc
! INCLUDE_DEST = $(INSTALL_PREFIX)/include
! LIB_DEST = $(INSTALL_PREFIX)/lib
! MAN_DEST = $(INSTALL_PREFIX)/man
! OBJECTS_DEST = $(INSTALL_PREFIX)/extra
! HELP_DEST = $(DOCS_DEST)/5.reference
! MANUALS_DEST = $(DOCS_DEST)/manuals
--- 64,88 ----
# sources
! abstractions_src = $(cvs_root_dir)/abstractions
! doc_src = $(cvs_root_dir)/doc
! extensions_src = $(cvs_root_dir)/extensions
! externals_src = $(cvs_root_dir)/externals
! flext_src = $(cvs_root_dir)/externals/grill/flext
! gem_src = $(cvs_root_dir)/Gem
! packages_src = $(cvs_root_dir)/packages
! pd_src = $(cvs_root_dir)/pd
! scripts_src = $(cvs_root_dir)/scripts
# destinations
! examplesdir = $(pddocdir)/examples
! bindir = $(prefix)/bin
! pddocdir = $(prefix)/doc
! includedir = $(prefix)/include
! libdir = $(prefix)/lib
! mandir = $(prefix)/man
! objectsdir = $(prefix)/extra
! helpdir = $(pddocdir)/5.reference
! manualsdir = $(pddocdir)/manuals
***************
*** 94,114 ****
# first make sure that the directory structure is setup
! $(INSTALL_PREFIX):
! install -d $(INSTALL_PREFIX)
! $(APPLICATIONS_DEST): $(INSTALL_PREFIX)
! install -d $(APPLICATIONS_DEST)
! $(DOCS_DEST): $(INSTALL_PREFIX)
! install -d $(DOCS_DEST)
! $(HELP_DEST): $(INSTALL_PREFIX)
! install -d $(HELP_DEST)
! $(MANUALS_DEST): $(INSTALL_PREFIX)
! install -d $(MANUALS_DEST)
! $(OBJECTS_DEST): $(INSTALL_PREFIX)
! install -d $(OBJECTS_DEST)
--- 94,114 ----
# first make sure that the directory structure is setup
! $(prefix):
! install -d $(prefix)
! $(examplesdir): $(prefix)
! install -d $(examplesdir)
! $(pddocdir): $(prefix)
! install -d $(pddocdir)
! $(helpdir): $(prefix)
! install -d $(helpdir)
! $(manualsdir): $(prefix)
! install -d $(manualsdir)
! $(objectsdir): $(prefix)
! install -d $(objectsdir)
***************
*** 120,129 ****
! PD_MAJOR_VERSION := $(shell grep 'Pd version' $(PD_SRC)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version \([0-9]\)\.[0-9]*[. TES-]*[0-9]*[0-9extndRC.-]*\\n";/\1/')
! PD_MINOR_VERSION := $(shell grep 'Pd version' $(PD_SRC)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version [0-9]\.\([0-9]*\)[. TES-]*\([0-9]*\)[0-9extndRC.-]*\\n";/\1/')
! PD_BUGFIX_VERSION := $(shell grep 'Pd version' $(PD_SRC)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version [0-9]\.[0-9]*[. TES-]*\([0-9]*\)[0-9extndRC.-]*\\n";/\1/')
# the separators [.-] need to be the same as in s_main.c or the regexps break
PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)
--- 120,129 ----
! PD_MAJOR_VERSION := $(shell grep 'Pd version' $(pd_src)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version \([0-9]\)\.[0-9]*[. TES-]*[0-9]*[0-9extndRC.-]*.n";/\1/')
! PD_MINOR_VERSION := $(shell grep 'Pd version' $(pd_src)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version [0-9]\.\([0-9]*\)[. TES-]*\([0-9]*\)[0-9extndRC.-]*.n";/\1/')
! PD_BUGFIX_VERSION := $(shell grep 'Pd version' $(pd_src)/src/s_main.c | \
! sed 's/char pd_version\[\] = "Pd version [0-9]\.[0-9]*[. TES-]*\([0-9]*\)[0-9extndRC.-]*.n";/\1/')
# the separators [.-] need to be the same as in s_main.c or the regexps break
PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)
***************
*** 131,135 ****
# release version for this distro
! PACKAGE_VERSION = extended-RC4
PACKAGE_NAME = Pd-$(PD_VERSION)-$(PACKAGE_VERSION)
--- 131,135 ----
# release version for this distro
! PACKAGE_VERSION = extended-RC6
PACKAGE_NAME = Pd-$(PD_VERSION)-$(PACKAGE_VERSION)
***************
*** 143,191 ****
applications_clean:
! -rm -f -- $(APPLICATIONS_DEST)/*/*/*/*/*.*
! -rm -f -- $(APPLICATIONS_DEST)/*/*/*/*.*
! -rm -f -- $(APPLICATIONS_DEST)/*/*/*.*
! -rm -f -- $(APPLICATIONS_DEST)/*/*.*
! -rmdir $(APPLICATIONS_DEST)/*/*/*/*
! -rmdir $(APPLICATIONS_DEST)/*/*/*
! -rmdir $(APPLICATIONS_DEST)/*/*
! -rmdir $(APPLICATIONS_DEST)/*
! -rmdir $(APPLICATIONS_DEST)
help_clean:
! -rm -f -- $(HELP_DEST)/*/*/*.*
! -rm -f -- $(HELP_DEST)/*/*.*
! -rm -f -- $(HELP_DEST)/*.*
! -rmdir $(HELP_DEST)/*/*
! -rmdir $(HELP_DEST)/*
! -rmdir $(HELP_DEST)
manuals_clean:
! -rm -f -- $(MANUALS_DEST)/*/*/*.*
! -rm -f -- $(MANUALS_DEST)/*/*.*
! -rmdir $(MANUALS_DEST)/*/*
! -rmdir $(MANUALS_DEST)/*
! -rmdir $(MANUALS_DEST)
objects_clean:
! -rm $(OBJECTS_DEST)/*/*/*.pd
! -rm $(OBJECTS_DEST)/*/*.pd
! -rm $(OBJECTS_DEST)/*.pd
! -rm $(OBJECTS_DEST)/*/*/*.$(EXTENSION)
! -rm $(OBJECTS_DEST)/*/*.$(EXTENSION)
! -rm $(OBJECTS_DEST)/*.$(EXTENSION)
! -rmdir $(OBJECTS_DEST)/*/*
! -rmdir $(OBJECTS_DEST)/*
! -rmdir $(OBJECTS_DEST)
install_clean: applications_clean help_clean manuals_clean objects_clean
! -rmdir $(DOCS_DEST)
! -rmdir $(INSTALL_PREFIX)
@echo " "
! @echo "Build destination cleaned: $(INSTALL_PREFIX)"
--- 143,191 ----
applications_clean:
! -rm -f -- $(examplesdir)/*/*/*/*/*.*
! -rm -f -- $(examplesdir)/*/*/*/*.*
! -rm -f -- $(examplesdir)/*/*/*.*
! -rm -f -- $(examplesdir)/*/*.*
! -rmdir $(examplesdir)/*/*/*/*
! -rmdir $(examplesdir)/*/*/*
! -rmdir $(examplesdir)/*/*
! -rmdir $(examplesdir)/*
! -rmdir $(examplesdir)
help_clean:
! -rm -f -- $(helpdir)/*/*/*.*
! -rm -f -- $(helpdir)/*/*.*
! -rm -f -- $(helpdir)/*.*
! -rmdir $(helpdir)/*/*
! -rmdir $(helpdir)/*
! -rmdir $(helpdir)
manuals_clean:
! -rm -f -- $(manualsdir)/*/*/*.*
! -rm -f -- $(manualsdir)/*/*.*
! -rmdir $(manualsdir)/*/*
! -rmdir $(manualsdir)/*
! -rmdir $(manualsdir)
objects_clean:
! -rm $(objectsdir)/*/*/*.pd
! -rm $(objectsdir)/*/*.pd
! -rm $(objectsdir)/*.pd
! -rm $(objectsdir)/*/*/*.$(EXTENSION)
! -rm $(objectsdir)/*/*.$(EXTENSION)
! -rm $(objectsdir)/*.$(EXTENSION)
! -rmdir $(objectsdir)/*/*
! -rmdir $(objectsdir)/*
! -rmdir $(objectsdir)
install_clean: applications_clean help_clean manuals_clean objects_clean
! -rmdir $(pddocdir)
! -rmdir $(prefix)
@echo " "
! @echo "Build destination cleaned: $(prefix)"
More information about the Pd-cvs
mailing list