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
= \
52 mkall mkindex mkprevnext mkrawindex mkindexcache \
53 mkconfig mknew catsubject notesinit setcrontab \
54 Notes.pm NotesIndex.pm NotesVars.pm
58 notes-mode.el notes-index-mode.el \
59 notes-url.el notes-aux.el \
60 notes-emacs.el notes-xemacs.el \
63 ITMP
= /tmp
/notes-mode
66 MY_LIB_DIR
=/home
/johnh
/NOTES
/BIN
67 MY_EL_DIR
=/home
/johnh
/LIB
/EMACS
69 ######################################################################
75 @echo
"nothing required for make; just run \"make install\""
78 ######################################################################
83 # install_bins: $(BINS)
88 echo
'(setq load-path (cons "$(EL_DIR)" load-path))' >.notes-recompile.el
89 echo
'(cd "$(EL_DIR)")' >>.notes-recompile.el
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
; \
97 @echo Warnings in the elisp compilation can be ignored.
98 $(EMACS
) -q
-batch
-l .notes-recompile.el
101 for i in
$(SCRIPTS
); \
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; \
110 cp
$(INSTALLABLE_OTHERS
) $(LIB_DIR
)
113 $(MKDIR_P
) $(INFO_DIR
)
114 cp notes-mode.
info $(INFO_DIR
)/notes-mode
115 if
test x
$(INSTALL_INFO
) = xno
; \
117 echo
'You must manually add notes mode to your info "dir" file.'; \
119 $(INSTALL_INFO
) $(INSTALL_INFO_SECTION
) --info-file
=notes-mode.
info --dir-file
=$(INFO_DIR
)/dir; \
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."
129 install: install_els install_scripts install_others install_info install_whatnext
130 @echo Notes-mode is installed.
133 ######################################################################
135 # Documentation stuff.
138 notes-mode.
info: notes-mode.texi
139 makeinfo notes-mode.texi
141 notes-mode.
dvi: notes-mode.texi
142 texi2dvi notes-mode.texi
144 notes-mode.ps.gz
: notes-mode.
dvi notes-mode.texi
145 dvips
-f notes-mode.
dvi |gzip
>notes-mode.ps.gz
148 test -d HTML || mkdir HTML
149 ( cd HTML
; texi2html
-split_chapter ..
/notes-mode.texi
)
150 ( cd HTML
; texi2html
-monolithic ..
/notes-mode.texi
)
152 texi
: notes-mode.
info notes-mode.
dvi notes-mode.ps.gz html
154 # Install_www is only for me.
155 WWW_DIR
=$$HOME/LIB
/WWW
/SOFTWARE
/NOTES_MODE
157 cp HTML
/*.html
$(WWW_DIR
)
158 cp notes-mode.ps.gz
$(WWW_DIR
)
159 cp notes-mode-
`cat release`.
tar.gz
$(WWW_DIR
)
161 ######################################################################
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`
183 uuencode notes-mode-
`cat release`.
tar.gz
<notes-mode-
`cat release`.
tar.gz
>notes-mode-
`cat release`.
tar.gz.uu
185 RELEASE_DIR
=$$HOME/WORKING
/JOHNH_WWW
/SOFTWARE
/NOTES_MODE
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
)