aboutsummaryrefslogtreecommitdiff
path: root/extensions/Makefile
blob: 017b10646564b11b03763c9d07cb0365998d399f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#==============================================================================#
#
# Centralized build system for "extensions".  
#
# see for instructions: http://puredata.org/docs/developer/build
#  <hans@at.or.at>
#
#==============================================================================#

CWD := $(shell pwd)

# these are designed to be overridden by the packages/Makefile
cvs_root_dir = $(CWD)/..
DESTDIR = $(CWD)/build/
BUILDLAYOUT_DIR = $(cvs_root_dir)/packages

# 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: $(examplesdir) $(helpdir) $(manualsdir) $(objectsdir) $(readmesdir) \
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 \
		$(readmesdir)/$(GRIPD_NAME).txt
	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 \
		$(readmesdir)/$(IX_NAME).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





test_locations:
	@echo "PD_VERSION: $(PD_VERSION)"
	@echo "PACKAGE_VERSION: $(PACKAGE_VERSION)"
	@echo "CWD $(CWD)"
	@echo "DESTDIR $(DESTDIR)"
	@echo "PREFIX $(prefix)"
	@echo "BINDIR  $(bindir)"
	@echo "LIBDIR  $(libdir)"
	@echo "OBJECTSDIR  $(objectsdir)"
	@echo "PDDOCDIR  $(pddocdir)"
	@echo "LIBPDDIR  $(libpddir)"
	@echo "LIBPDBINDIR  $(libpdbindir)"
	@echo "HELPDIR  $(helpdir)"
	@echo "MANUALSDIR  $(manualsdir)"
	@echo "EXAMPLESDIR  $(examplesdir)"