summaryrefslogtreecommitdiff
path: root/pr/include/md/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'pr/include/md/Makefile.in')
-rw-r--r--pr/include/md/Makefile.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/pr/include/md/Makefile.in b/pr/include/md/Makefile.in
index 316c4540..5f8f0f71 100644
--- a/pr/include/md/Makefile.in
+++ b/pr/include/md/Makefile.in
@@ -46,21 +46,22 @@ CONFIGS = $(wildcard $(srcdir)/*.cfg)
include $(topsrcdir)/config/rules.mk
export:: $(MDCPUCFG_H)
- $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
-ifneq ($(OS_ARCH),OpenVMS)
- mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
+ $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
+ifeq ($(OS_ARCH),OpenVMS)
+# On OpenVMS mv updates the file's modified time, so we create a hard link.
+ cd $(dist_includedir); \
+ if test ! -f prcpucfg.h; then \
+ dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
+ fi
else
-# mv'ing a link causes the file itself to move, not the link.
- rm -f $(dist_includedir)/$(MDCPUCFG_H)
- rm -f $(dist_includedir)/prcpucfg.h
- ln -fs $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
+ mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
endif
real_install::
$(NSINSTALL) -D $(DESTDIR)$(includedir)/md
cp $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
- $(NSINSTALL) -t -m 644 $(CONFIG) $(HEADERS) $(DESTDIR)$(includedir)/md
+ $(NSINSTALL) -t -m 644 $(HEADERS) $(DESTDIR)$(includedir)/md
release:: export
@echo "Copying machine-dependent prcpucfg.h"