Commit b6d8ea32 authored by Ian Lynagh's avatar Ian Lynagh

Tweak generation of generated files

Use "chmod a-w" rather than "chmod 444", and allow the command used to
be overridden.
parent 8edeb9db
......@@ -775,6 +775,8 @@ MKDIRHIER = $(GHC_MKDIRHIER_DIR)/$(GHC_MKDIRHIER_PGM)
LNDIR = $(GHC_LNDIR_DIR)/$(GHC_LNDIR_PGM)
RUNTEST = $(GHC_RUNTEST_DIR)/$(GHC_RUNTEST_PGM)
GENERATED_FILE = chmod a-w
#-----------------------------------------------------------------------------
# Haskell compilers and mkdependHS
......
......@@ -83,7 +83,7 @@ $(odir_)%.$(way_)s : %.$(way_)hc
$(odir_)%.$(way_)hc : %.lhc
@$(RM) $@
$(UNLIT) $< $@
@chmod 444 $@
$(GENERATED_FILE) $@
# Here's an interesting rule!
......@@ -358,17 +358,17 @@ endif
%.prl : %.lprl
@$(RM) $@
$(UNLIT) $(UNLIT_OPTS) $< $@
@chmod 444 $@
$(GENERATED_FILE) $@
%.c : %.lc
@$(RM) $@
$(UNLIT) $(UNLIT_OPTS) $< $@
@chmod 444 $@
$(GENERATED_FILE) $@
%.h : %.lh
@$(RM) $@
$(UNLIT) $(UNLIT_OPTS) $< $@
@chmod 444 $@
$(GENERATED_FILE) $@
#-----------------------------------------------------------------------------
# Win32 resource files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment