-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile.mingw
82 lines (70 loc) · 2.15 KB
/
Makefile.mingw
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
QCAD_TOP = .
QCAD_SRC = $(QCAD_TOP)/src
QCAD_PIX = $(QCAD_TOP)/pixmaps
QCAD_PO = $(QCAD_TOP)/po
QCAD_DOC = $(QCAD_TOP)/docs
QCAD_INSTALL_DIR_NAME = win32-install-dir
QCAD_INSTALL_DIR = $(QCAD_TOP)/$(QCAD_INSTALL_DIR_NAME)
MAKENSIS = makensis.exe
GTK_PREFIX = ../../win32-dev/gtk_2_0
GTK_RUNTIME_PKG = gtk-runtime-2.6.10-rev-a.exe
ISCC = ISCC.exe
PACKAGE = QCADesigner
VERSION = 2.1.0
.PHONY: all src po doc install installers installer installer_gtk clean
all: src po doc
src:
$(MAKE) -C $(QCAD_SRC) \
VERSION=$(VERSION) \
PACKAGE=$(PACKAGE) \
GTK_PREFIX=$(GTK_PREFIX) \
-f Makefile.mingw
po:
$(MAKE) -C $(QCAD_PO) \
GTK_PREFIX=$(GTK_PREFIX) \
-f Makefile.mingw
doc:
$(MAKE) -C $(QCAD_DOC) \
-f Makefile.mingw
install: all
mkdir -p $(QCAD_INSTALL_DIR)
$(MAKE) -C $(QCAD_SRC) \
QCAD_INSTALL_DIR_NAME=$(QCAD_INSTALL_DIR_NAME) \
-f Makefile.mingw install
$(MAKE) -C $(QCAD_PO) \
PACKAGE=$(PACKAGE) \
QCAD_INSTALL_DIR_NAME=$(QCAD_INSTALL_DIR_NAME) \
-f Makefile.mingw install
$(MAKE) -C $(QCAD_DOC) \
QCAD_INSTALL_DIR_NAME=$(QCAD_INSTALL_DIR_NAME) \
-f Makefile.mingw install
$(MAKE) -C $(QCAD_PIX) \
QCAD_INSTALL_DIR_NAME=$(QCAD_INSTALL_DIR_NAME) \
-f Makefile.mingw install
cp COPYING $(QCAD_INSTALL_DIR)/docs
mkdir -p $(QCAD_INSTALL_DIR)/qca_cell_library
cp sample.qca $(QCAD_INSTALL_DIR)/qca_cell_library
clean:
$(MAKE) -C $(QCAD_SRC) -f Makefile.mingw clean
$(MAKE) -C $(QCAD_PO) -f Makefile.mingw clean
$(MAKE) -C $(QCAD_DOC) -f Makefile.mingw clean
rm -rf $(QCAD_INSTALL_DIR) Output *.iss
installer: install
rm -f QCADesigner-win32.iss
cat QCADesigner-win32.iss.in | \
sed \
-e 's!@PACKAGE@!$(PACKAGE)!g' \
-e 's!@VERSION@!$(VERSION)!g' \
-e 's!@prefix@!$(QCAD_INSTALL_DIR)!g' > QCADesigner-win32.iss
$(ISCC) QCADesigner-win32.iss
installer_gtk: install
rm -f QCADesigner-win32-gtk.iss
cat QCADesigner-win32-gtk.iss.in | \
sed \
-e 's!@PACKAGE@!$(PACKAGE)!g' \
-e 's!@VERSION@!$(VERSION)!g' \
-e 's!@prefix@!$(QCAD_INSTALL_DIR)!g' \
-e 's!@packagesrcdir@!$(QCAD_TOP)!g' \
-e 's!@GTK_RUNTIME_PKG@!$(GTK_RUNTIME_PKG)!g' > QCADesigner-win32-gtk.iss
$(ISCC) QCADesigner-win32-gtk.iss
installers: installer installer_gtk