… | |
… | |
21 | INSTALL_PROGRAM += -s |
21 | INSTALL_PROGRAM += -s |
22 | endif |
22 | endif |
23 | |
23 | |
24 | config.status: configure |
24 | config.status: configure |
25 | dh_testdir |
25 | dh_testdir |
26 | CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --enable-ascii-docs --datadir=/usr/share/doc |
26 | CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --enable-ascii-docs --datadir=/usr/share/doc --mandir=/usr/share/man --with-etcdir=/etc/psiconv |
27 | |
27 | |
28 | |
28 | |
29 | build: build-stamp |
29 | build: build-stamp |
30 | build-stamp: config.status |
30 | build-stamp: config.status |
31 | dh_testdir |
31 | dh_testdir |
32 | $(MAKE) |
32 | $(MAKE) pkgdatadir=/usr/share/doc/libpsiconv6 |
33 | touch build-stamp |
33 | touch build-stamp |
34 | |
34 | |
35 | clean: |
35 | clean: |
36 | dh_testdir |
36 | dh_testdir |
37 | dh_testroot |
37 | dh_testroot |
… | |
… | |
47 | |
47 | |
48 | install: build |
48 | install: build |
49 | dh_testdir |
49 | dh_testdir |
50 | dh_testroot |
50 | dh_testroot |
51 | dh_clean -k |
51 | dh_clean -k |
52 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
52 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp pkgdatadir=/usr/share/doc/libpsiconv6 |
53 | |
53 | |
54 | |
54 | |
55 | # Build architecture-independent files here. |
55 | # Build architecture-independent files here. |
56 | binary-indep: build install psiconv-doc |
56 | binary-indep: build install psiconv-doc |
57 | |
57 | |
58 | |
58 | |
59 | # Build architecture-dependent files here. |
59 | # Build architecture-dependent files here. |
60 | binary-arch: build install psiconv-dev libpsiconv5 psiconv |
60 | binary-arch: build install libpsiconv-dev libpsiconv6 psiconv |
61 | |
61 | |
62 | psiconv-dev: |
62 | libpsiconv-dev: |
63 | dh_testdir |
63 | dh_testdir |
64 | dh_testroot |
64 | dh_testroot |
65 | rm -rf debian/$@ |
65 | rm -rf debian/$@ |
66 | dh_installdirs -p $@ |
66 | dh_installdirs -p $@ |
67 | ln -sfn libpsiconv5 debian/$@/usr/share/doc/$@ |
67 | ln -sfn libpsiconv6 debian/$@/usr/share/doc/$@ |
68 | dh_install -p $@ --sourcedir debian/tmp |
68 | dh_install -p $@ --sourcedir debian/tmp |
|
|
69 | dh_installman -p $@ |
69 | dh_link -p $@ |
70 | dh_link -p $@ |
70 | dh_strip -p $@ |
71 | dh_strip -p $@ |
71 | dh_compress -p $@ |
72 | dh_compress -p $@ |
72 | dh_fixperms -p $@ |
73 | dh_fixperms -p $@ |
73 | dh_installdeb -p $@ |
74 | dh_installdeb -p $@ |
… | |
… | |
78 | psiconv-doc: |
79 | psiconv-doc: |
79 | dh_testdir |
80 | dh_testdir |
80 | dh_testroot |
81 | dh_testroot |
81 | rm -rf debian/$@ |
82 | rm -rf debian/$@ |
82 | dh_installdirs -p $@ |
83 | dh_installdirs -p $@ |
83 | ln -sfn libpsiconv5 debian/$@/usr/share/doc/$@ |
84 | ln -sfn libpsiconv6 debian/$@/usr/share/doc/$@ |
84 | dh_install -p $@ --sourcedir debian/tmp |
85 | dh_install -p $@ --sourcedir debian/tmp |
85 | dh_compress -p $@ |
86 | dh_compress -p $@ |
86 | dh_fixperms -p $@ |
87 | dh_fixperms -p $@ |
87 | dh_installdeb -p $@ |
88 | dh_installdeb -p $@ |
88 | dh_gencontrol -p $@ |
89 | dh_gencontrol -p $@ |
89 | dh_md5sums -p $@ |
90 | dh_md5sums -p $@ |
90 | dh_builddeb -p $@ |
91 | dh_builddeb -p $@ |
91 | |
92 | |
92 | libpsiconv5: |
93 | libpsiconv6: |
93 | dh_testdir |
94 | dh_testdir |
94 | dh_testroot |
95 | dh_testroot |
95 | rm -rf debian/$@ |
96 | rm -rf debian/$@ |
96 | dh_installdirs -p $@ |
97 | dh_installdirs -p $@ |
97 | dh_installdocs -p $@ |
98 | dh_installdocs -p $@ |
98 | dh_install -p $@ --sourcedir debian/tmp |
99 | dh_install -p $@ --sourcedir debian/tmp |
|
|
100 | dh_installchangelogs -p $@ |
99 | dh_link -p $@ |
101 | dh_link -p $@ |
100 | dh_strip -p $@ |
102 | dh_strip -p $@ |
101 | dh_compress -p $@ |
103 | dh_compress -p $@ |
102 | dh_fixperms -p $@ |
104 | dh_fixperms -p $@ |
103 | dh_makeshlibs -p $@ |
105 | dh_makeshlibs -p $@ |
|
|
106 | dh_shlibdeps -p $@ |
104 | dh_installdeb -p $@ |
107 | dh_installdeb -p $@ |
105 | dh_gencontrol -p $@ |
108 | dh_gencontrol -p $@ |
106 | dh_md5sums -p $@ |
109 | dh_md5sums -p $@ |
107 | dh_builddeb -p $@ |
110 | dh_builddeb -p $@ |
108 | |
111 | |
109 | psiconv: |
112 | psiconv: |
110 | dh_testdir |
113 | dh_testdir |
111 | dh_testroot |
114 | dh_testroot |
112 | rm -rf debian/$@ |
115 | rm -rf debian/$@ |
113 | dh_installdirs -p $@ |
116 | dh_installdirs -p $@ |
114 | ln -sfn libpsiconv5 debian/$@/usr/share/doc/$@ |
117 | ln -sfn libpsiconv6 debian/$@/usr/share/doc/$@ |
115 | dh_install -p $@ --sourcedir debian/tmp |
118 | dh_install -p $@ --sourcedir debian/tmp |
116 | dh_installman -p $@ --sourcedir debian/tmp |
119 | dh_installman -p $@ |
117 | dh_link -p $@ |
120 | dh_link -p $@ |
118 | dh_strip -p $@ |
121 | dh_strip -p $@ |
119 | dh_compress -p $@ |
122 | dh_compress -p $@ |
120 | dh_fixperms -p $@ |
123 | dh_fixperms -p $@ |
|
|
124 | dh_shlibdeps -p $@ |
121 | dh_installdeb -p $@ |
125 | dh_installdeb -p $@ |
122 | dh_gencontrol -p $@ |
126 | dh_gencontrol -p $@ |
123 | dh_md5sums -p $@ |
127 | dh_md5sums -p $@ |
124 | dh_builddeb -p $@ |
128 | dh_builddeb -p $@ |
125 | |
129 | |