Debian Codegraph @

debian/local.mk

raw symbols SCIP
1 ############################ -*- Mode: Makefile -*- ###########################
2 ## local.mk ---
3 ## Author : Manoj Srivastava ( [email protected] )
4 ## Created On : Sat Nov 15 10:42:10 2003
5 ## Created On Node : glaurung.green-gryphon.com
6 ## Last Modified By : Neil Roeth
7 ## Last Modified On : Thursday May 21, 2009
8 ## Status : Unknown, Use with caution!
9 ## HISTORY :
10 ## Description :
11 ##
12 ###############################################################################
13
14 CONFIG-indep:: stamp-conf
15 BUILD/psgml:: build/psgml
16 INST/psgml:: install/psgml
17 BIN/psgml:: binary/psgml
18
19 testdir:
20 $(checkdir)
21
22 stamp-conf:
23 $(REASON)
24 -test ! -d debian/cdtd && $(MAKE) -f debian/rules explode
25 ./configure --verbose --prefix=$(PREFIX) --infodir=/usr/share/info \
26 --sysconfdir=/etc $(confflags)
27 touch $@
28
29 STAMPS_TO_CLEAN += stamp-conf
30
31 implode:
32 $(REASON)
33 $(checkdir)
34 -test -d debian/cdtd && (cd debian && \
35 tar zfc debian.tar.gz cdtd && \
36 uuencode debian.tar.gz debian.tar.gz > debian.uue \
37 && rm -f debian.tar.gz )
38 explode:
39 $(REASON)
40 $(checkdir)
41 -test ! -d debian/cdtd && (cd debian && uudecode debian.uue \
42 && tar zfx debian.tar.gz && rm -f debian.tar.gz )
43
44 CLEAN/psgml::
45 $(MAKE) clean || true
46 -rm -rf $(TMPTOP) Makefile-el
47
48 build/psgml: stamp-build-gnus
49
50 stamp-build-gnus:
51 $(checkdir)
52 $(REASON)
53 bash -n debian/postinst
54 bash -n debian/prerm
55 bash -n debian/postrm
56 bash -n debian/emacsen.remove
57 bash -n debian/emacsen.install
58 bash -n debian/emacsen.compat
59 mkdir debian/html
60 (cd debian/html; \
61 makeinfo --html --split=chapter -v -o . ../../psgml.texi)
62 touch stamp-build-gnus
63
64 STAMPS_TO_CLEAN += stamp-build-gnus
65
66 install/psgml: testroot
67 $(REASON)
68 $(checkdir)
69 rm -rf $(TMPTOP) $(TMPTOP).deb
70 $(make_directory) $(INFODIR)
71 $(make_directory) $(LISPDIR)
72 # $(make_directory) $(STARTDIRS)
73 $(make_directory) $(DOCDIR)
74 $(make_directory) $(DOCBASE)
75 $(make_directory) $(COMPILEDIR)/install
76 $(make_directory) $(COMPILEDIR)/remove
77 $(make_directory) $(COMPILEDIR)/compat
78 $(make_directory) $(LIBDIR)
79 $(install_file) *.el $(LISPDIR)
80 $(install_file) Makefile.in $(LISPDIR)
81 cp -p Makefile Makefile-el
82 $(install_file) Makefile-el $(LISPDIR)
83 $(install_file) configure $(LISPDIR)
84 chmod 0755 $(LISPDIR)/configure
85 $(install_file) debian/$(STARTFILE) $(LISPDIR)
86 $(install_program) install-sh $(LISPDIR)
87 $(install_file) debian/psgml-html.el $(LISPDIR)/
88 $(install_file) psgml.info $(INFODIR)/
89 $(install_file) psgml-api.info $(INFODIR)/
90 $(install_file) iso88591.map $(LIBDIR)
91 (cd debian; tar cf - cdtd) | (cd $(LIBDIR); tar xf -)
92 $(install_file) README.psgml $(DOCDIR)/README.psgml
93 $(install_file) psgml.ps $(DOCDIR)/psgml.ps
94 $(install_file) ChangeLog $(DOCDIR)/changelog
95 $(install_file) debian/changelog $(DOCDIR)/changelog.Debian
96 $(install_file) debian/example-customization.el $(DOCDIR)/
97 $(install_file) debian/README.debian $(DOCDIR)
98 $(install_file) debian/Example $(DOCDIR)/
99 gzip -9nfqr $(INFODIR)/
100 gzip -9nfqr $(DOCDIR)/
101 # Make sure the copyright file is not compressed
102 $(install_file) debian/copyright $(DOCDIR)/copyright
103 $(install_file) debian/html/*.html $(DOCDIR)/
104 $(install_file) debian/docentry $(DOCBASE)/$(package)
105 sed -e 's/=P/$(package)/g' -e 's/=V/$(DEB_VERSION)/g' \
106 debian/emacsen.install > $(COMPILEDIR)/install/$(package)
107 sed -e 's/=P/$(package)/g' -e 's/=V/$(DEB_VERSION)/g' \
108 debian/emacsen.remove > $(COMPILEDIR)/remove/$(package)
109 $(install_file) debian/emacsen.compat $(COMPILEDIR)/compat/$(package)
110 chmod 0755 $(COMPILEDIR)/install/$(package) \
111 $(COMPILEDIR)/remove/$(package)
112
113 binary/psgml: testroot
114 $(REASON)
115 $(checkdir)
116 $(make_directory) $(TMPTOP)/DEBIAN
117 $(install_program) debian/postinst $(TMPTOP)/DEBIAN/postinst
118 $(install_program) debian/prerm $(TMPTOP)/DEBIAN/prerm
119 $(install_program) debian/postrm $(TMPTOP)/DEBIAN/postrm
120 dpkg-gencontrol -p$(package) -isp -P$(TMPTOP)
121 $(create_md5sum) $(TMPTOP)
122 chown -R root:root $(TMPTOP)
123 chmod -R u+w,go=rX $(TMPTOP)
124 dpkg --build $(TMPTOP) ..