annotate lib/swig/swigwin-2.0.11/CCache/debian/rules @ 2553:48708da03b7f

Party Creation UI logic separated from MainMenu
author a.parshin
date Wed, 13 May 2015 02:20:05 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 #!/usr/bin/make -f
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 # Sample debian/rules that uses debhelper.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 # GNU copyright 1997 to 1999 by Joey Hess.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 # Uncomment this to turn on verbose mode.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 #export DH_VERBOSE=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 # These are used for cross-compiling and for saving the configure script
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 # from having to guess our platform (since we know it already)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 confflags += --build $(DEB_HOST_GNU_TYPE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 CFLAGS += -g
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 INSTALL_PROGRAM += -s
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 config.status: configure
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 dh_testdir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 # Apply Debian specific patches
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 cp $(CURDIR)/ccache.c $(CURDIR)/ccache.c.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 cp $(CURDIR)/util.c $(CURDIR)/util.c.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 cp $(CURDIR)/ccache.1 $(CURDIR)/ccache.1.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 cp $(CURDIR)/ccache.h $(CURDIR)/ccache.h.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 cp $(CURDIR)/ccache.yo $(CURDIR)/ccache.yo.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 cp $(CURDIR)/config.h.in $(CURDIR)/config.h.in.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 cp $(CURDIR)/configure $(CURDIR)/configure.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 cp $(CURDIR)/configure.in $(CURDIR)/configure.in.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 cp $(CURDIR)/Makefile.in $(CURDIR)/Makefile.in.unpatched
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 if test ! -f patch-stamp; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 for patch in $(CURDIR)/debian/patches/*.diff ;\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 do \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 echo APPLYING PATCH\: $${patch##*/};\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 patch -p0 < $$patch ;\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 done ;\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 touch patch-stamp ;\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 chmod +x $(CURDIR)/manage-cache.sh
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 build: build-stamp
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 build-stamp: config.status
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 dh_testdir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 $(MAKE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 touch build-stamp
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 clean:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 dh_testdir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 dh_testroot
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 rm -f build-stamp
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 # Unapply patches
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 -test -r $(CURDIR)/ccache.c.unpatched && mv $(CURDIR)/ccache.c.unpatched $(CURDIR)/ccache.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 -test -r $(CURDIR)/util.c.unpatched && mv $(CURDIR)/util.c.unpatched $(CURDIR)/util.c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 -test -r $(CURDIR)/ccache.1.unpatched && mv $(CURDIR)/ccache.1.unpatched $(CURDIR)/ccache.1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 -test -r $(CURDIR)/ccache.h.unpatched && mv $(CURDIR)/ccache.h.unpatched $(CURDIR)/ccache.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 -test -r $(CURDIR)/ccache.yo.unpatched && mv $(CURDIR)/ccache.yo.unpatched $(CURDIR)/ccache.yo
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 -test -r $(CURDIR)/config.h.in.unpatched && mv $(CURDIR)/config.h.in.unpatched $(CURDIR)/config.h.in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 -test -r $(CURDIR)/configure.unpatched && mv $(CURDIR)/configure.unpatched $(CURDIR)/configure
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 -test -r $(CURDIR)/configure.in.unpatched && mv $(CURDIR)/configure.in.unpatched $(CURDIR)/configure.in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 -test -r $(CURDIR)/Makefile.in.unpatched && mv $(CURDIR)/Makefile.in.unpatched $(CURDIR)/Makefile.in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 -rm -f $(CURDIR)/manage-cache.sh
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 -rm -f patch-stamp
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 [ ! -f Makefile ] || $(MAKE) distclean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 dh_clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 # Update config.sub and config.guess
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 -test -r /usr/share/misc/config.sub && \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 cp -f /usr/share/misc/config.sub config.sub
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 -test -r /usr/share/misc/config.guess && \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 cp -f /usr/share/misc/config.guess config.guess
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 install: build
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 dh_testdir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 dh_testroot
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 dh_clean -k
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 dh_installdirs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 # Add here commands to install the package into debian/ccache.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 $(MAKE) install prefix=$(CURDIR)/debian/ccache/usr
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/$(DEB_BUILD_GNU_TYPE)-gcc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/$(DEB_BUILD_GNU_TYPE)-g++
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 set -e; for ver in 2.95 3.0 3.2 3.3 3.4 4.0 4.1 4.2 4.3; do \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/$(DEB_BUILD_GNU_TYPE)-gcc-$$ver; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/gcc-$$ver; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/$(DEB_BUILD_GNU_TYPE)-g++-$$ver; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/g++-$$ver; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/cc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/c++
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/gcc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/g++
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/i586-mingw32msvc-c++
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/i586-mingw32msvc-cc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/i586-mingw32msvc-g++
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 ln -s ../../bin/ccache $(CURDIR)/debian/ccache/usr/lib/ccache/i586-mingw32msvc-gcc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 # Build architecture-independent files here.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 binary-indep: build install
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 # We have nothing to do by default.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 # Build architecture-dependent files here.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 binary-arch: build install
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 dh_testdir
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 dh_testroot
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 dh_installdocs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 dh_installexamples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125 dh_installmenu
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 dh_installcron
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 dh_installman
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 dh_installinfo
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 dh_installchangelogs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 dh_link
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 dh_strip
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 dh_compress
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 dh_fixperms
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 dh_installdeb
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 dh_shlibdeps
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 dh_gencontrol
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 dh_md5sums
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 dh_builddeb
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 binary: binary-indep binary-arch
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 .PHONY: build clean binary-indep binary-arch binary install