blob: 69e60bb66dc54a83bd147999c300f83290af1ab6 (
plain) (
blame)
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
|
# -*- Makefile -*-
#
buildtree=build-tree/
sourcedir=w3m-0.3
builddir=$(buildtree)/$(sourcedir)
extract: extract-stamp
extract-stamp:
-rm -rf $(buildtree)
mkdir $(buildtree)
tar zxfC upstream/w3m-0.3.tar.gz $(buildtree)
touch extract-stamp
patch: patch-stamp
patch-stamp: extract-stamp
for p in debian/patches/[0-9]*; \
do \
test -f $$p || continue; \
patchopt=`sed -ne '1s/PATCH: \(.*\)/\1/p' $$p`; \
echo "Patch: $$p ($$patchopt)"; \
cat $$p | (cd $(builddir) && patch $$patchopt); \
done
touch patch-stamp
buildjadir=$(buildtree)/$(sourcedir)-ja
buildendir=$(buildtree)/$(sourcedir)-en
setup-ja: $(buildjadir)/setup-stamp
$(buildjadir)/setup-stamp: extract-stamp patch-stamp
-rm -rf $(buildjadir)
cp -a $(builddir) $(buildjadir)
touch $(buildjadir)/setup-stamp
setup-en: $(buildendir)/setup-stamp
$(buildendir)/setup-stamp: extract-stamp patch-stamp
-rm -rf $(buildendir)
cp -a $(builddir) $(buildendir)
touch $(buildendir)/setup-stamp
configure: configure-stamp
configure-stamp: setup-ja setup-en
touch configure-stamp
|