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 $
8 ######################################################################
10 # user configurable parameters
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.
18 # INFO_DIR is for emacs info files.
20 INSTALL_INFO
=@install_info@
21 INSTALL_INFO_SECTION
=@install_info_section@
23 # must be perl 5.000 or better.
25 # must be 19 or greater
31 # end of user configurable parameters
33 ######################################################################
36 INSTALLABLE_OTHERS
= \
59 mkall mkindex mkprevnext mkrawindex mkindexcache \
60 mkconfig mknew catsubject notesinit setcrontab \
61 Notes.pm NotesIndex.pm NotesVars.pm
65 notes-mode.el notes-index-mode.el \
66 notes-url.el notes-aux.el \
68 notes-emacs.el notes-xemacs.el \
71 ITMP
= /tmp
/notes-mode
74 MY_LIB_DIR
=/home
/johnh
/NOTES
/BIN
75 MY_EL_DIR
=/home
/johnh
/LIB
/EMACS
77 ######################################################################
85 # strftime: strftime.c
88 @echo
"nothing required for make; just run \"make install\""
91 ######################################################################
96 # install_bins: $(BINS)
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
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
; \
110 @echo Warnings in the elisp compilation can be ignored.
111 $(EMACS
) -q
-batch
-l .notes-recompile.el
114 for i in
$(SCRIPTS
); \
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; \
123 cp
$(INSTALLABLE_OTHERS
) $(LIB_DIR
)
126 $(MKDIR_P
) $(INFO_DIR
)
127 cp notes-mode.
info $(INFO_DIR
)/notes-mode
128 if
test x
$(INSTALL_INFO
) = xno
; \
130 echo
'You must manually add notes mode to your info "dir" file.'; \
132 $(INSTALL_INFO
) $(INSTALL_INFO_SECTION
) --info-file
=notes-mode.
info --dir-file
=$(INFO_DIR
)/dir; \
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."
142 install: install_els install_scripts install_others install_info install_whatnext
143 @echo Notes-mode is installed.
146 ######################################################################
148 # Documentation stuff.
151 notes-mode.
info: notes-mode.texi
152 makeinfo notes-mode.texi
154 notes-mode.
dvi: notes-mode.texi
155 texi2dvi notes-mode.texi
157 notes-mode.ps.gz
: notes-mode.
dvi notes-mode.texi
158 dvips
-f notes-mode.
dvi |gzip
>notes-mode.ps.gz
161 test -d HTML || mkdir HTML
162 ( cd HTML
; texi2html
-split_chapter ..
/notes-mode.texi
)
163 ( cd HTML
; texi2html
-monolithic ..
/notes-mode.texi
)
165 texi
: notes-mode.
info notes-mode.
dvi notes-mode.ps.gz html
167 # Install_www is only for me.
168 WWW_DIR
=$$HOME/LIB
/WWW
/SOFTWARE
/NOTES_MODE
170 cp HTML
/*.html
$(WWW_DIR
)
171 cp notes-mode.ps.gz
$(WWW_DIR
)
172 cp notes-mode-
`cat release`.
tar.gz
$(WWW_DIR
)
174 ######################################################################
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`
196 uuencode notes-mode-
`cat release`.
tar.gz
<notes-mode-
`cat release`.
tar.gz
>notes-mode-
`cat release`.
tar.gz.uu
198 RELEASE_DIR
=$$HOME/WORKING
/JOHNH_WWW
/SOFTWARE
/NOTES_MODE
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
)