[project @ 1999-10-06 12:25:18 by simonmar]
authorsimonmar <unknown>
Wed, 6 Oct 1999 12:25:18 +0000 (12:25 +0000)
committersimonmar <unknown>
Wed, 6 Oct 1999 12:25:18 +0000 (12:25 +0000)
Always prepend `#! $(INTERP)' to a script, even if we're BIN_DISTing.
It doesn't do any harm, and means that we can execute the BIN_DIST
version of a script from the build tree, provided it doesn't depend on
any global paths.

mk/target.mk

index 612f58b..8458618 100644 (file)
@@ -423,12 +423,8 @@ $(SCRIPT_PROG) :: $(SCRIPT_OBJS)
        $(RM) $@
        @echo Creating $@...
 ifeq "$(INTERP)" "perl"
-ifneq "$(BIN_DIST)" "1"
        echo "#! "$(PERL) > $@
 else
-       @touch $@
-endif
-else
 ifneq "$(INTERP)" ""
        @echo "#!"$(INTERP) > $@
 else
@@ -771,7 +767,7 @@ show:
 #--------------------------------------------------------------------------
 # SGML Documentation
 #
-.PHONY: dvi ps html info txt
+.PHONY: dvi ps html pdf rtf
 
 ifneq "$(SGML_DOC)" ""
 
@@ -792,19 +788,23 @@ endif
 
 SGML_DVI  = $(SGML_DOC).dvi
 SGML_PS   = $(SGML_DOC).ps
-SGML_INFO = $(SGML_DOC).info
+SGML_PDF  = $(SGML_DOC).pdf
+SGML_RTF  = $(SGML_DOC).rtf
 SGML_HTML = $(SGML_DOC).html
-SGML_TEXT = $(SGML_DOC).txt
+# HTML output goes in a subdirectory on its own.
 
 $(SGML_DVI) $(SGML_PS) $(SGML_INFO) $(SGML_HTML) $(SGML_TEXT) :: $(SGML_SRCS)
 
 dvi  :: $(SGML_DVI)
-info :: $(SGML_INFO)
-html :: $(SGML_HTML)
-txt  :: $(SGML_TXT)
 ps   :: $(SGML_PS)
+pdf  :: $(SGML_PDF)
+rtf  :: $(SGML_RTF)
+html :: $(SGML_HTML)
+
+CLEAN_FILES += $(SGML_TEXT) $(SGML_PS) $(SGML_DVI) $(SGML_PDF) $(SGML_RTF) $(SGML_HTML)
 
-CLEAN_FILES += $(SGML_TEXT) $(SGML_DOC)*.html $(SGML_PS) $(SGML_DVI)
+clean ::
+       $(RM) -rf $(SGML_DOC)
 
 endif