aboutsummaryrefslogtreecommitdiff
path: root/packages/win32_inno/Makefile
blob: 0bd7b558376209ccbaf49d1b91e3b9fd95e74f76 (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
#
# This is a grand unifying Makefile for compiling Pd-extended under MinGW
#
all: install

CWD := $(shell pwd)

prefix = $(CWD)/build
cvs_root_dir = $(CWD)/../..
BUILDLAYOUT_DIR = $(CWD)/..


include $(BUILDLAYOUT_DIR)/Makefile.buildlayout


# these are sent to all of the various Makefiles so that they all copy their
# output to the same directory tree
DEST_PATHS = BUILDLAYOUT_DIR=$(BUILDLAYOUT_DIR) \
				cvs_root_dir=$(cvs_root_dir) \
				prefix=$(prefix) \
				UNAME=$(UNAME)


install: extended_install


#==============================================================================#
#
## CVS SOURCES
#
#==============================================================================#

PD_ISS_NAME = pd-inno.iss
$(PD_ISS_NAME): $(PD_ISS_NAME).in
	@echo "Making Inno Setup file: $(PD_ISS_NAME)"
	cat "$(PD_ISS_NAME).in" | \
		sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/g' | \
		sed 's/PD_VERSION/$(PD_VERSION)-$(PACKAGE_VERSION)/g' > \
		$(PD_ISS_NAME)
	-./generate_inno_files.sh >> $(PD_ISS_NAME)
#	start $(PD_ISS_NAME)

#==============================================================================#
#
## CVS SOURCES
#
#==============================================================================#

extended_install:
	cd $(packages_src) && make $(DEST_PATHS) install