annotate scripts/startup/module.mk @ 28061:8f5e625062f3

use %reldir% in more places in module.mk files in scripts directory * scripts/+containers/module.mk, scripts/+matlab/+lang/module.mk, scripts/audio/module.mk, scripts/deprecated/module.mk, scripts/elfun/module.mk, scripts/general/module.mk, scripts/geometry/module.mk, scripts/gui/module.mk, scripts/help/module.mk, scripts/image/module.mk, scripts/io/module.mk, scripts/java/module.mk, scripts/legacy/module.mk, scripts/linear-algebra/module.mk, scripts/miscellaneous/module.mk, scripts/ode/module.mk, scripts/optimization/module.mk, scripts/path/module.mk, scripts/pkg/module.mk, scripts/plot/appearance/module.mk, scripts/plot/draw/module.mk, scripts/plot/util/module.mk, scripts/polynomial/module.mk, scripts/prefs/module.mk, scripts/profiler/module.mk, scripts/set/module.mk, scripts/signal/module.mk, scripts/sparse/module.mk, scripts/specfun/module.mk, scripts/special-matrix/module.mk, scripts/startup/module.mk, scripts/statistics/module.mk, scripts/strings/module.mk, scripts/testfun/module.mk, scripts/time/module.mk, scripts/web/module.mk: Use %reldir% instead of literal directory name where possbile. Ensure that all private directories are included in FCN_FILE_DIRS list.
author John W. Eaton <jwe@octave.org>
date Thu, 13 Feb 2020 11:33:27 -0500
parents 494d6243c188
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28061
8f5e625062f3 use %reldir% in more places in module.mk files in scripts directory
John W. Eaton <jwe@octave.org>
parents: 27587
diff changeset
1 FCN_FILE_DIRS += %reldir%
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
3 SITE_STARTUP_FILE_SRC = %reldir%/site-rcfile
12633
5109be17eb49 maint: Don't install main-rcfile, local-rcfile but do distribute them in tarball.
Rik <octave@nomad.inbox5.com>
parents: 9906
diff changeset
4
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
5 VERSION_STARTUP_FILE_SRC = %reldir%/version-rcfile
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
7 SYSTEM_INPUTRC_FILE_SRC = %reldir%/inputrc
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 STARTUP_FILE_SRC = \
20479
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
10 $(SITE_STARTUP_FILE_SRC) \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
11 $(VERSION_STARTUP_FILE_SRC) \
12633
5109be17eb49 maint: Don't install main-rcfile, local-rcfile but do distribute them in tarball.
Rik <octave@nomad.inbox5.com>
parents: 9906
diff changeset
12 $(SYSTEM_INPUTRC_FILE_SRC)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
14 %canon_reldir%dir = $(fcnfiledir)/startup
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
16 PKG_ADD_FILES += %reldir%/PKG_ADD
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
17
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 20479
diff changeset
18 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)
20366
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20355
diff changeset
19
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20355
diff changeset
20 scripts_EXTRA_DIST += $(STARTUP_FILE_SRC)
20479
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
21
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
22 install-startup-files:
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
23 $(MKDIR_P) $(DESTDIR)$(fcnfiledir)/startup
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
24 if test -f $(DESTDIR)$(fcnfiledir)/startup/octaverc; then true; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
25 else \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
26 $(INSTALL_DATA) $(srcdir)/$(VERSION_STARTUP_FILE_SRC) \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
27 $(DESTDIR)$(fcnfiledir)/startup/octaverc; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
28 fi
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
29 if test -f $(DESTDIR)$(fcnfiledir)/startup/inputrc; then true; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
30 else \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
31 $(INSTALL_DATA) $(srcdir)/$(SYSTEM_INPUTRC_FILE_SRC) \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
32 $(DESTDIR)$(fcnfiledir)/startup/inputrc; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
33 fi
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
34 $(MKDIR_P) $(DESTDIR)$(localfcnfiledir)/startup
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
35 if test -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
36 then true; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
37 else \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
38 $(INSTALL_DATA) $(srcdir)/$(SITE_STARTUP_FILE_SRC) \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
39 $(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
40 fi
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
41 .PHONY: install-startup-files
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
42
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
43 uninstall-startup-files:
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
44 rm -f $(DESTDIR)$(fcnfiledir)/startup/octaverc
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
45 rm -f $(DESTDIR)$(fcnfiledir)/startup/inputrc
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
46 rm -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc
ac0f7acdc3fd avoid executing startup file twice when using run-octave script (bug #45872)
John W. Eaton <jwe@octave.org>
parents: 20366
diff changeset
47 .PHONY: uninstall-startup-files