4 INSTDIR
:=debian
/inst.
$(PACKAGE
)
5 DOCDIR
:=$(INSTDIR
)/usr
/share
/doc
/$(PACKAGE
)
9 $(MAKE
) depend ETCDIR
=/etc
/X11
10 $(MAKE
) PREFIX
=/usr ETCDIR
=/etc
/X11 \
11 MANDIR
=/usr
/share
/man \
12 DOCDIR
=/usr
/share
/doc \
16 test -e debian
/control
17 test root
= "`whoami`" ||
(echo need root priviledges
; exit
1)
20 rm -f debian
/files debian
/substvars
24 test -e debian
/control
25 test root
= "`whoami`" ||
(echo need root priviledges
; exit
1)
26 rm -f debian
/substvars
29 PREFIX
=$(CURDIR
)/$(INSTDIR
)/usr \
30 ETCDIR
=$(CURDIR
)/$(INSTDIR
)/etc
/X11 \
31 MANDIR
=$(CURDIR
)/$(INSTDIR
)/usr
/share
/man \
32 DOCDIR
=$(CURDIR
)/$(INSTDIR
)/usr
/share
/doc
34 # Build architecture-independent files here.
35 binary-indep
: build
install
36 # We have nothing to do by default.
38 # Build architecture-dependent files here.
39 binary-arch
: build
install
40 test -e debian
/control
41 test root
= "`whoami`" ||
(echo need root priviledges
; exit
1)
42 install -d
-m0755
$(DOCDIR
)/examples \
43 $(INSTDIR
)/usr
/lib
/menu
44 install -m0644 debian
/menu
$(INSTDIR
)/usr
/lib
/menu
/ion
45 # clean up after upstream
46 mv
$(INSTDIR
)/etc
/X11
/ion
/bindings-sun.conf
$(DOCDIR
)/examples
47 # this one's identical with ion.conf
48 rm -f
$(INSTDIR
)/etc
/X11
/ion
/sample.conf
49 rm -f
$(DOCDIR
)/LICENSE
50 mv
$(DOCDIR
)/ChangeLog
$(DOCDIR
)/changelog
51 chmod
-R g-w
$(INSTDIR
)
52 install -m0644 README
$(DOCDIR
)/README
53 install -m0644 debian
/copyright
$(DOCDIR
)/copyright
54 install -m0644 debian
/changelog
$(DOCDIR
)/changelog.Debian
55 mv
-i
$(INSTDIR
)/usr
/share
/man
/man1
/ion
.1x
$(INSTDIR
)/usr
/share
/man
/man1
/ion
.1
56 gzip
-9f
$(DOCDIR
)/README \
57 $(DOCDIR
)/changelog
$(DOCDIR
)/changelog.Debian \
58 $(INSTDIR
)/usr
/share
/man
/man1
/ion
.1
59 # for a in ion-edit ion-man ion-runinxterm ion-ssh ion-view; do \
60 # ln -s ../man7/undocumented.7.gz $(INSTDIR)/usr/share/man/man1/$$a.1.gz ;\
62 strip --remove-section
=.comment
--remove-section
=.note \
63 $(INSTDIR
)/usr
/bin
/ion
64 install -d
-m0755
$(INSTDIR
)/DEBIAN
65 cd
$(INSTDIR
) && find .
/etc
-type f | sed
's/^\.//g' >DEBIAN
/conffiles.tmp
66 chmod
0644 $(INSTDIR
)/DEBIAN
/conffiles.tmp
67 mv
$(INSTDIR
)/DEBIAN
/conffiles.tmp
$(INSTDIR
)/DEBIAN
/conffiles
68 install -m0755 debian
/preinst debian
/postinst debian
/prerm debian
/postrm \
70 dpkg-shlibdeps
$(INSTDIR
)/usr
/bin
/ion
71 dpkg-gencontrol
-isp
-P
$(INSTDIR
)
72 dpkg
--build
$(INSTDIR
) ..
74 binary
: binary-indep binary-arch
75 .PHONY
: build
clean binary-indep binary-arch binary