106
|
1 |
#!/usr/bin/make -f
|
|
2 |
# -*- makefile -*-
|
|
3 |
# Sample debian/rules that uses debhelper.
|
|
4 |
# This file was originally written by Joey Hess and Craig Small.
|
|
5 |
# As a special exception, when this file is copied by dh-make into a
|
|
6 |
# dh-make output file, you may use that output file without restriction.
|
|
7 |
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
8 |
|
|
9 |
# Uncomment this to turn on verbose mode.
|
|
10 |
export DH_VERBOSE=1
|
|
11 |
|
|
12 |
CFLAGS = -Wall -g
|
|
13 |
|
|
14 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
15 |
CFLAGS += -O0
|
|
16 |
else
|
|
17 |
CFLAGS += -O2
|
|
18 |
endif
|
|
19 |
|
|
20 |
build: build-stamp
|
|
21 |
|
171
|
22 |
build-stamp:
|
106
|
23 |
dh_testdir
|
|
24 |
# Add here commands to compile the package.
|
|
25 |
$(MAKE)
|
|
26 |
touch $@
|
|
27 |
|
171
|
28 |
clean:
|
106
|
29 |
dh_testdir
|
|
30 |
dh_testroot
|
171
|
31 |
rm -f build-stamp
|
106
|
32 |
|
|
33 |
# Add here commands to clean up after the build process.
|
|
34 |
-$(MAKE) clean
|
|
35 |
|
|
36 |
dh_clean
|
|
37 |
|
|
38 |
install: build
|
|
39 |
dh_testdir
|
|
40 |
dh_testroot
|
|
41 |
dh_clean -k
|
|
42 |
dh_installdirs
|
|
43 |
|
|
44 |
# Add here commands to install the package into debian/matiec.
|
171
|
45 |
#$(MAKE) INSTALL_PREDIR=$(CURDIR)/debian/matiec/usr INSTALL_BINDIR=/bin IECLIBDIR=/lib install
|
106
|
46 |
|
171
|
47 |
# Add here commands to install the package into debian/beremiz.
|
|
48 |
mkdir -p $(CURDIR)/debian/matiec/usr/share/matiec
|
|
49 |
|
|
50 |
cp -a lib $(CURDIR)/debian/matiec/usr/share/matiec
|
|
51 |
cp iec2c $(CURDIR)/debian/matiec/usr/share/matiec
|
106
|
52 |
|
|
53 |
# Build architecture-independent files here.
|
|
54 |
binary-indep: build install
|
|
55 |
# We have nothing to do by default.
|
|
56 |
|
|
57 |
# Build architecture-dependent files here.
|
|
58 |
binary-arch: build install
|
|
59 |
dh_testdir
|
|
60 |
dh_testroot
|
213
|
61 |
# dh_installchangelogs
|
|
62 |
# dh_installdocs
|
|
63 |
# dh_installexamples
|
106
|
64 |
# dh_install
|
|
65 |
# dh_installmenu
|
|
66 |
# dh_installdebconf
|
|
67 |
# dh_installlogrotate
|
|
68 |
# dh_installemacsen
|
|
69 |
# dh_installpam
|
|
70 |
# dh_installmime
|
|
71 |
# dh_python
|
|
72 |
# dh_installinit
|
|
73 |
# dh_installcron
|
|
74 |
# dh_installinfo
|
213
|
75 |
# dh_installman
|
106
|
76 |
dh_link
|
|
77 |
dh_strip
|
|
78 |
dh_compress
|
|
79 |
dh_fixperms
|
|
80 |
# dh_perl
|
|
81 |
# dh_makeshlibs
|
|
82 |
dh_installdeb
|
|
83 |
dh_shlibdeps
|
|
84 |
dh_gencontrol
|
|
85 |
dh_md5sums
|
|
86 |
dh_builddeb
|
|
87 |
|
|
88 |
binary: binary-indep binary-arch
|
171
|
89 |
.PHONY: build clean binary-indep binary-arch binary install
|