1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
FCN_FILE_DIRS += %reldir%
SITE_STARTUP_FILE_SRC = %reldir%/site-rcfile
VERSION_STARTUP_FILE_SRC = %reldir%/version-rcfile
SYSTEM_INPUTRC_FILE_SRC = %reldir%/inputrc
STARTUP_FILE_SRC = \
$(SITE_STARTUP_FILE_SRC) \
$(VERSION_STARTUP_FILE_SRC) \
$(SYSTEM_INPUTRC_FILE_SRC)
%canon_reldir%dir = $(fcnfiledir)/startup
PKG_ADD_FILES += %reldir%/PKG_ADD
DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)
scripts_EXTRA_DIST += $(STARTUP_FILE_SRC)
install-startup-files:
$(MKDIR_P) $(DESTDIR)$(fcnfiledir)/startup
if test -f $(DESTDIR)$(fcnfiledir)/startup/octaverc; then true; \
else \
$(INSTALL_DATA) $(srcdir)/$(VERSION_STARTUP_FILE_SRC) \
$(DESTDIR)$(fcnfiledir)/startup/octaverc; \
fi
if test -f $(DESTDIR)$(fcnfiledir)/startup/inputrc; then true; \
else \
$(INSTALL_DATA) $(srcdir)/$(SYSTEM_INPUTRC_FILE_SRC) \
$(DESTDIR)$(fcnfiledir)/startup/inputrc; \
fi
$(MKDIR_P) $(DESTDIR)$(localfcnfiledir)/startup
if test -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
then true; \
else \
$(INSTALL_DATA) $(srcdir)/$(SITE_STARTUP_FILE_SRC) \
$(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
fi
.PHONY: install-startup-files
uninstall-startup-files:
rm -f $(DESTDIR)$(fcnfiledir)/startup/octaverc
rm -f $(DESTDIR)$(fcnfiledir)/startup/inputrc
rm -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc
.PHONY: uninstall-startup-files
|