]> code.delx.au - gnu-emacs-elpa/blob - packages/notes-mode/Makefile.in
cc2c06006c2840dcfdf3bd6be9c62826fbc708a2
[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 strftime.c \
48 notes-mode.texi \
49 notes-mode.info \
50 notes-mode.ps.gz
51
52 #SRCS = \
53 # strftime.c
54
55 #BINS = \
56 # strftime
57
58 SCRIPTS = \
59 mkall mkindex mkprevnext mkrawindex mkindexcache \
60 mkconfig mknew catsubject notesinit setcrontab \
61 Notes.pm NotesIndex.pm NotesVars.pm
62
63 ELS = \
64 notes-variables.el \
65 notes-mode.el notes-index-mode.el \
66 notes-url.el notes-aux.el \
67 notes-bootstrap.el \
68 notes-emacs.el notes-xemacs.el \
69 notes-first.el
70
71 ITMP = /tmp/notes-mode
72
73 MY_PERL=/usr/bin/perl
74 MY_LIB_DIR=/home/johnh/NOTES/BIN
75 MY_EL_DIR=/home/johnh/LIB/EMACS
76
77 ######################################################################
78 #
79 # Compliation stuff.
80 #
81
82 # all: strftime
83 # all: strftime
84
85 # strftime: strftime.c
86
87 all:
88 @echo "nothing required for make; just run \"make install\""
89
90
91 ######################################################################
92 #
93 # Installation stuff.
94 #
95
96 # install_bins: $(BINS)
97
98 install_els:
99 $(MKDIR_P) $(EL_DIR)
100 $(MKDIR_P) $(LIB_DIR)
101 echo '(setq load-path (cons "$(EL_DIR)" load-path))' >.notes-recompile.el
102 echo '(cd "$(EL_DIR)")' >>.notes-recompile.el
103 for i in $(ELS); \
104 do \
105 sed -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' \
106 -e 's@$(MY_EL_DIR)@$(EL_DIR)@' \
107 -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' < $$i >$(EL_DIR)/$$i; \
108 echo '(byte-compile-file "'$$i'")' >>.notes-recompile.el; \
109 done
110 @echo Warnings in the elisp compilation can be ignored.
111 $(EMACS) -q -batch -l .notes-recompile.el
112
113 install_scripts:
114 for i in $(SCRIPTS); \
115 do \
116 sed -e 's@$(MY_PERL)@$(PERL)@' \
117 -e 's@$(MY_EL_DIR)@$(EL_DIR)@' \
118 -e 's@$(MY_LIB_DIR)@$(LIB_DIR)@' < $$i >$(LIB_DIR)/$$i; \
119 chmod +x $(LIB_DIR)/$$i; \
120 done
121
122 install_others:
123 cp $(INSTALLABLE_OTHERS) $(LIB_DIR)
124
125 install_info:
126 $(MKDIR_P) $(INFO_DIR)
127 cp notes-mode.info $(INFO_DIR)/notes-mode
128 if test x$(INSTALL_INFO) = xno; \
129 then \
130 echo 'You must manually add notes mode to your info "dir" file.'; \
131 else \
132 $(INSTALL_INFO) $(INSTALL_INFO_SECTION) --info-file=notes-mode.info --dir-file=$(INFO_DIR)/dir; \
133 fi
134
135
136 install_whatnext:
137 @echo "Once notes-mode is installed, start it by running emacs,"
138 @echo "and then do M-x load-library RET notes-mode RET."
139 @echo "Or run info notes-mode to read the manual."
140
141
142 install: install_els install_scripts install_others install_info install_whatnext
143 @echo Notes-mode is installed.
144
145
146 ######################################################################
147 #
148 # Documentation stuff.
149 #
150
151 notes-mode.info: notes-mode.texi
152 makeinfo notes-mode.texi
153
154 notes-mode.dvi: notes-mode.texi
155 texi2dvi notes-mode.texi
156
157 notes-mode.ps.gz: notes-mode.dvi notes-mode.texi
158 dvips -f notes-mode.dvi |gzip >notes-mode.ps.gz
159
160 html:
161 test -d HTML || mkdir HTML
162 ( cd HTML; texi2html -split_chapter ../notes-mode.texi )
163 ( cd HTML; texi2html -monolithic ../notes-mode.texi )
164
165 texi: notes-mode.info notes-mode.dvi notes-mode.ps.gz html
166
167 # Install_www is only for me.
168 WWW_DIR=$$HOME/LIB/WWW/SOFTWARE/NOTES_MODE
169 install_www: texi
170 cp HTML/*.html $(WWW_DIR)
171 cp notes-mode.ps.gz $(WWW_DIR)
172 cp notes-mode-`cat release`.tar.gz $(WWW_DIR)
173
174 ######################################################################
175 #
176 # Release stuff.
177 #
178
179 tar.gz: texi
180 $(MKDIR_P) $(ITMP)-`cat release`
181 cp $(INSTALLABLE_OTHERS) $(OTHERS) $(ITMP)-`cat release`
182 mkdir $(ITMP)-`cat release`/HTML
183 cp -R HTML/. $(ITMP)-`cat release`/HTML
184 cp $(SCRIPTS) $(ITMP)-`cat release`
185 # cp $(SRCS) $(ITMP)-`cat release`
186 for i in $(ELS); do cp $$i $(ITMP)-`cat release`; done
187 # cp -r SAMPLE $(ITMP)-`cat release`
188 # echo "dir: $(ITMP)-`cat release`/SAMPLE" >$(ITMP)/notesrc
189 # ( NOTESRC=$(ITMP)-`cat release`/notesrc; export NOTESRC; $(ITMP)-`cat release`/mkall )
190 ( cd /tmp; tar cvf - ./notes-mode-* ) | gzip >notes-mode-`cat release`.tar.gz
191 rm -rf $(ITMP)-`cat release`/HTML
192 rm -f $(ITMP)-`cat release`/*
193 rmdir $(ITMP)-`cat release`
194
195 tar.gz.uu: tar.gz
196 uuencode notes-mode-`cat release`.tar.gz <notes-mode-`cat release`.tar.gz >notes-mode-`cat release`.tar.gz.uu
197
198 RELEASE_DIR=$$HOME/WORKING/JOHNH_WWW/SOFTWARE/NOTES_MODE
199
200 copy_release:
201 cp notes-mode-`cat release`.tar.gz $(RELEASE_DIR)
202 mv notes-mode-`cat release`.tar.gz RELEASES
203 cp HTML/notes-mode/* $(RELEASE_DIR)
204 cp HTML/notes-mode.html $(RELEASE_DIR)
205