Commits

Anonymous committed c4d2c3d

package Makefile overhaul -- remove explicit targets, explicit specification of generated .el files, etc; all is done using directives [i.e. variables], as documented in XEmacs.rules

Comments (0)

Files changed (2)

 REQUIRES = x-symbol xemacs-base auctex mail-lib
 CATEGORY = standard
 
+include ../../Local.rules.inc
+
 ELCS = lisp/x-symbol-nomule.elc \
 	lisp/x-symbol-xmas20.elc lisp/x-symbol-xmas21.elc \
 	lisp/x-symbol-hooks.elc lisp/x-symbol-macs.elc \
 DATA_3_FILES = pcf/*.pcf pcf/fonts.dir
 DATA_3_DEST = $(PACKAGE)/pcf
 
-TEXI_FILES = man/x-symbol.texi
-INFO_FILES = man/x-symbol.info*
+EXPLICIT_DOCS = man/x-symbol.texi
+
+PRELOADS = -l x-symbol.el
+
+# NOTE: texi2html is run after cd'ing into the subdirectory.
+
+# FIXME: I can't get the '-init_file=x-symbol.init' to work.  It's needed
+# to add HTML code that includes the stylesheet file 'x-symbol.css'.
+# Unfortunately I know didly squat about Perl. - Steve Youngs.
+ifeq ($(TEXI2HTML_1_56K), t)
+TEXI2HTML_FLAGS += -verbose -expandinfo -menu -number
+else
+# EXTRA_HTML_FILES = man/index.html
+TEXI2HTML_FLAGS += -Verbose -expand info -menu -number -lang="en" \
+	-top_file="index.html" # -init_file="x-symbol.init"
+endif
 
 include ../../XEmacs.rules
 
-GENERATED += $(AUTOLOAD_PATH)/custom-load.elc
-
-PRELOADS = -l x-symbol.el
-
-compile:: $(AUTOLOAD_PATH)/auto-autoloads.elc $(ELCS) \
-		$(AUTOLOAD_PATH)/custom-load.elc \
-		$(TEXI_FILES:%.texi=%.info) fonts
+compile:: fonts
 
 fonts::
 	$(MAKE) -C fonts mkdirs
 	$(MAKE) -C fonts pcfs
 
-html:
-	$(MAKE) $(MFLAGS) -C man html
-
-binkit: binkit-common
-
 clean::
 	rm -rf genfonts pcf
-	(cd man; $(MAKE) clean)
-
-distclean::
-	(cd man; $(MAKE) distclean)
 
 mkdirs:
 	-if [ ! -d $(GENFONTS) ]; then mkdir $(GENFONTS); fi
-	-if [ ! -d $(PCFDIR) ]; then mkdir $(PCFDIR); \
-			       else rm -f $(PCFDIR)/*.pcf ; fi;
+	-if [ ! -d $(PCFDIR) ]; then mkdir $(PCFDIR); fi
 
 gens: $(GENS)