# # Set base directories and filenames # ifndef PROJROOT PROJROOT =$(HOME)/JF endif ifndef DESTROOT DESTROOT =/home/groups/l/li/linuxjf/htdocs endif ifndef WORKDIR WORKDIR =$(HOME)/tmp endif LAST_MODIFIED =$(PROJROOT)/last-modified BINDIR =$(PROJROOT)/bin LDP_ROOT =$(DESTROOT)/howto-translations WWW_ROOT =$(DESTROOT) FTP_ROOT =$(DESTROOT)/ftp # # jfindex.db # JFINDEXDB =$(PROJROOT)/jfindex.db # # INDEX categories. # CATEGORIES = install faq guide hardware diskmanage filesystem network xfree dtp database tool kernel etc programming archived # # INDEX kinds. # KINDS = OTHER-TRANS ORIGINAL # # default behavior # COMPILE=yes # # Select contents to make # ifndef INSTALL_WWW INSTALL_WWW=yes endif ifndef INSTALL_FTP INSTALL_FTP=yes endif ifndef INSTALL_LDP INSTALL_LDP=yes endif # # Set destination directory # # tarballs WORK_TEXT=$(WORKDIR)/txt/JFdocs WORK_SGML=$(WORKDIR)/sgml/JFdocs WORK_HTML=$(WORKDIR)/html/JFdocs WORKCONTENTS =./JFdocs ifeq ($(ITEM), archived) WORK_TEXT=$(WORKDIR)/txt/JFdocs/archive WORK_SGML=$(WORKDIR)/sgml/JFdocs/archive WORK_HTML=$(WORKDIR)/html/JFdocs/archive endif # WWW contents DEST_WWW_TEXT=$(WWW_ROOT)/JFdocs DEST_WWW_SGML=$(WWW_ROOT)/JFdocs DEST_WWW_HTML=$(WWW_ROOT)/JFdocs ifeq ($(ITEM), archived) DEST_WWW_TEXT=$(WWW_ROOT)/JFdocs/archive DEST_WWW_SGML=$(WWW_ROOT)/JFdocs/archive DEST_WWW_HTML=$(WWW_ROOT)/JFdocs/archive endif # FTP contents DEST_FTP_TEXT=$(FTP_ROOT)/text DEST_FTP_SGML=$(FTP_ROOT)/sgml DEST_FTP_HTML=$(FTP_ROOT)/html ifeq ($(KIND), LDP-TRANS) DEST_FTP_TEXT=$(FTP_ROOT)/text DEST_FTP_SGML=$(FTP_ROOT)/sgml DEST_FTP_HTML=$(FTP_ROOT)/html ifeq ($(ATRB), MINI) DEST_FTP_TEXT=$(FTP_ROOT)/text DEST_FTP_SGML=$(FTP_ROOT)/sgml DEST_FTP_HTML=$(FTP_ROOT)/html endif endif # LDP translations for mirror ifeq ($(KIND), LDP-TRANS) DEST_LDP_TEXT=$(LDP_ROOT) DEST_LDP_SGML=$(LDP_ROOT)/sgml DEST_LDP_HTML=$(LDP_ROOT)/html ifeq ($(ATRB), MINI) DEST_LDP_TEXT=$(LDP_ROOT)/mini/ DEST_LDP_SGML=$(LDP_ROOT)/mini/sgml DEST_LDP_HTML=$(LDP_ROOT)/mini/html endif endif # # List of obsoleted docs. # OBSOLETE=$(PROJROOT)/docs/obsolete/obsoleted.list # # SGML-tools # SGML2HTML = sgml2html -c nippon -l ja SGML21HTML = $(BINDIR)/sgml21html SGML2TEXT = LANG=ja_JP.eucJP sgml2txt -c nippon -f -l ja HTML2TEXT = LANG=ja w3m -dump -T text/html -cols 72 JADE = jade JADE_OPTION = -t sgml -i html -d $(PROJROOT)/jf-custom.dsl JADE_ADD_OPTION = XMLDCL = $(PROJROOT)/xml.dcl # # Misc. tools # INSTALL = install -m 644 GEN_INDEX = $(BINDIR)/genindex.pl $(JFINDEXDB) MKNEWINDEX = perl -I $(BINDIR) $(BINDIR)/mknewidx.pl -d $(JFINDEXDB) MKCONTRIBINDEX = perl -I $(BINDIR) $(BINDIR)/mkcontriblist.pl -d $(JFINDEXDB) PERL_CRLF = perl -e 'while (<>) {chop; print; print "\r\n";}' NKF = nkf