]> code.delx.au - gnu-emacs-elpa/blob - packages/notes-mode/Makefile.in
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / notes-mode / Makefile.in
1
2 #
3 # Makefile.in
4 # (if you're reading Makefile, it's autogenerated from Makefile.in)
5 # $Id: Makefile.in,v 1.31 2006/01/14 23:26:41 johnh Exp $
6 #
7
8 ######################################################################
9 #
10 # user configurable parameters
11 #
12
13 prefix=@prefix@
14 # LIB_DIR should be a private place for notes-mode stuff.
15 LIB_DIR=@datadir@/notes-mode
16 # EL_DIR should be where your site-specific emacs .el{,c}'s go.
17 EL_DIR=@lisp_dir@
18 # INFO_DIR is for emacs info files.
19 INFO_DIR=@infodir@
20 INSTALL_INFO=@install_info@
21 INSTALL_INFO_SECTION=@install_info_section@
22
23 # must be perl 5.000 or better.
24 PERL=@perlbin@
25 # must be 19 or greater
26 EMACS=@emacsbin@
27
28 MKDIR_P=@mkdir_p@
29
30 #
31 # end of user configurable parameters
32 #
33 ######################################################################
34
35
36 INSTALLABLE_OTHERS = \
37 README \
38 sample.notesrc \
39 release
40
41 OTHERS = \
42 COPYING \
43 Makefile.in \
44 configure \
45 configure.in \
46 install-sh \
47 notes-mode.texi \
48 notes-mode.info \
49 notes-mode.ps.gz
50
51 SCRIPTS = \
52 mkall mkindex mkprevnext mkrawindex mkindexcache \
53 mkconfig mknew catsubject notesinit setcrontab \
54 Notes.pm NotesIndex.pm NotesVars.pm
55
56 ELS = \
57 notes-variables.el \
58 notes-mode.el notes-index-mode.el \
59 notes-url.el notes-aux.el \
60 notes-emacs.el notes-xemacs.el \
61 notes-first.el
62
63 ITMP = /tmp/notes-mode
64
65 MY_PERL=/usr/bin/perl
66 MY_LIB_DIR=/home/johnh/NOTES/BIN
67 MY_EL_DIR=/home/johnh/LIB/EMACS
68
69 ######################################################################
70 #
71 # Compliation stuff.
72 #
73
74 all:
75 @echo "nothing required for make; just run \"make install\""
76
77
78 ######################################################################
79 #
80 # Installation stuff.
81 #
82
83 # install_bins: $(BINS)
84
85 install_els:
86 $(MKDIR_P) $(EL_DIR)
87 $(MKDIR_P) $(LIB_DIR)
88 echo '(setq load-path (cons "$(EL_DIR)" load-path))' >.notes-recompile.el
89 echo '(cd "$(EL_DIR)")' >>.notes-recompile.el
90 for i in $(ELS); \
91 do \
92 sed -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' \
93 -e 's@$(MY_EL_DIR)@$(EL_DIR)@' \
94 -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' < $$i >$(EL_DIR)/$$i; \
95 echo '(byte-compile-file "'$$i'")' >>.notes-recompile.el; \
96 done
97 @echo Warnings in the elisp compilation can be ignored.
98 $(EMACS) -q -batch -l .notes-recompile.el
99
100 install_scripts:
101 for i in $(SCRIPTS); \
102 do \
103 sed -e 's@$(MY_PERL)@$(PERL)@' \
104 -e 's@$(MY_EL_DIR)@$(EL_DIR)@' \
105 -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' < $$i >$(LIB_DIR)/$$i; \
106 chmod +x $(LIB_DIR)/$$i; \
107 done
108
109 install_others:
110 cp $(INSTALLABLE_OTHERS) $(LIB_DIR)
111
112 install_info:
113 $(MKDIR_P) $(INFO_DIR)
114 cp notes-mode.info $(INFO_DIR)/notes-mode
115 if test x$(INSTALL_INFO) = xno; \
116 then \
117 echo 'You must manually add notes mode to your info "dir" file.'; \
118 else \
119 $(INSTALL_INFO) $(INSTALL_INFO_SECTION) --info-file=notes-mode.info --dir-file=$(INFO_DIR)/dir; \
120 fi
121
122
123 install_whatnext:
124 @echo "Once notes-mode is installed, start it by running emacs,"
125 @echo "and then do M-x load-library RET notes-mode RET."
126 @echo "Or run info notes-mode to read the manual."
127
128
129 install: install_els install_scripts install_others install_info install_whatnext
130 @echo Notes-mode is installed.
131
132
133 ######################################################################
134 #
135 # Documentation stuff.
136 #
137
138 notes-mode.info: notes-mode.texi
139 makeinfo notes-mode.texi
140
141 notes-mode.dvi: notes-mode.texi
142 texi2dvi notes-mode.texi
143
144 notes-mode.ps.gz: notes-mode.dvi notes-mode.texi
145 dvips -f notes-mode.dvi |gzip >notes-mode.ps.gz
146
147 html:
148 test -d HTML || mkdir HTML
149 ( cd HTML; texi2html -split_chapter ../notes-mode.texi )
150 ( cd HTML; texi2html -monolithic ../notes-mode.texi )
151
152 texi: notes-mode.info notes-mode.dvi notes-mode.ps.gz html
153
154 # Install_www is only for me.
155 WWW_DIR=$$HOME/LIB/WWW/SOFTWARE/NOTES_MODE
156 install_www: texi
157 cp HTML/*.html $(WWW_DIR)
158 cp notes-mode.ps.gz $(WWW_DIR)
159 cp notes-mode-`cat release`.tar.gz $(WWW_DIR)
160
161 ######################################################################
162 #
163 # Release stuff.
164 #
165
166 tar.gz: texi
167 $(MKDIR_P) $(ITMP)-`cat release`
168 cp $(INSTALLABLE_OTHERS) $(OTHERS) $(ITMP)-`cat release`
169 mkdir $(ITMP)-`cat release`/HTML
170 cp -R HTML/. $(ITMP)-`cat release`/HTML
171 cp $(SCRIPTS) $(ITMP)-`cat release`
172 # cp $(SRCS) $(ITMP)-`cat release`
173 for i in $(ELS); do cp $$i $(ITMP)-`cat release`; done
174 # cp -r SAMPLE $(ITMP)-`cat release`
175 # echo "dir: $(ITMP)-`cat release`/SAMPLE" >$(ITMP)/notesrc
176 # ( NOTESRC=$(ITMP)-`cat release`/notesrc; export NOTESRC; $(ITMP)-`cat release`/mkall )
177 ( cd /tmp; tar cvf - ./notes-mode-* ) | gzip >notes-mode-`cat release`.tar.gz
178 rm -rf $(ITMP)-`cat release`/HTML
179 rm -f $(ITMP)-`cat release`/*
180 rmdir $(ITMP)-`cat release`
181
182 tar.gz.uu: tar.gz
183 uuencode notes-mode-`cat release`.tar.gz <notes-mode-`cat release`.tar.gz >notes-mode-`cat release`.tar.gz.uu
184
185 RELEASE_DIR=$$HOME/WORKING/JOHNH_WWW/SOFTWARE/NOTES_MODE
186
187 copy_release:
188 cp notes-mode-`cat release`.tar.gz $(RELEASE_DIR)
189 mv notes-mode-`cat release`.tar.gz RELEASES
190 cp HTML/notes-mode/* $(RELEASE_DIR)
191 cp HTML/notes-mode.html $(RELEASE_DIR)
192