1: #
2: # $Id: Makefile.am,v 1.10 2025/04/03 15:51:17 snw Exp $
3: # automake rules for freem
4: #
5: #
6: # Author: Serena Willis <snw@coherent-logic.com>
7: # Copyright (C) 1998 MUG Deutschland
8: # Copyright (C) 2020, 2025 Coherent Logic Development LLC
9: #
10: #
11: # This file is part of FreeM.
12: #
13: # FreeM is free software: you can redistribute it and/or modify
14: # it under the terms of the GNU Affero Public License as published by
15: # the Free Software Foundation, either version 3 of the License, or
16: # (at your option) any later version.
17: #
18: # FreeM is distributed in the hope that it will be useful,
19: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: # GNU Affero Public License for more details.
22: #
23: # You should have received a copy of the GNU Affero Public License
24: # along with FreeM. If not, see <https://www.gnu.org/licenses/>.
25: #
26: # $Log: Makefile.am,v $
27: # Revision 1.10 2025/04/03 15:51:17 snw
28: # Add fmadm man page and apply minor updates to freem man page
29: #
30: # Revision 1.9 2025/04/03 02:39:02 snw
31: # Remove sysns_routine.txt from Makefile.am
32: #
33: # Revision 1.8 2025/04/01 14:32:10 snw
34: # Begin work on environment and namespace reorg
35: #
36: # Revision 1.7 2025/03/27 03:47:46 snw
37: # Fix dist problems
38: #
39: # Revision 1.6 2025/03/27 03:27:34 snw
40: # Install init scripts to share/freem/examples/init and fix regression in method dispatch
41: #
42: # Revision 1.5 2025/03/24 04:21:39 snw
43: # Attempted installer fix for OS/2
44: #
45: # Revision 1.4 2025/03/10 00:42:41 snw
46: # Fix broken build regression
47: #
48: # Revision 1.3 2025/03/09 19:14:24 snw
49: # First phase of REUSE compliance and header reformat
50: #
51: #
52: # SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
53: # SPDX-License-Identifier: AGPL-3.0-or-later
54: #
55: ACLOCAL_AMFLAGS = -I m4
56: SUBDIRS = src doc
57: dist_doc_DATA = README.md doc/freem.1 doc/fmadm.8
58:
59: man1_MANS = doc/freem.1
60: man8_MANS = doc/fmadm.8
61: info_TEXINFOS = doc/freem.texi
62:
63: systemrtndir = $(datadir)/freem/mlib
64: systemddir = $(datadir)/freem/examples/init/systemd
65: systemdfedoradir = $(datadir)/freem/examples/init/systemd/fedora
66: freebsdrcdir = $(datadir)/freem/examples/init/freebsd_rc
67: solarisinitdir = $(datadir)/freem/examples/init/solaris
68:
69: mlib = mlib/%DB.m mlib/%MAPPING.m mlib/%NETHTTP.m \
70: mlib/%SYSINIT.m mlib/%TUIMENU.m mlib/%ZCOLUMNS.m \
71: mlib/%ZFRMSAMP.m mlib/%ZFRMXEC.m mlib/%ZHELP.m mlib/%ZMAINT.m \
72: mlib/%SYSWMERGE.m mlib/%ZREVQRY.m mlib/%ZROWS.m \
73: mlib/%SYSPOLY.m mlib/%ulstring.m mlib/%ulmath.m mlib/%ulcharacter.m \
74: mlib/%SYSOOP.m mlib/%STRING.m mlib/%OBJECT.m mlib/%ED.m
75:
76: EXTRA_DIST = sem.ver $(mlib) \
77: scripts/systemd/system/freem.service scripts/systemd/fedora/freem.service scripts/freebsd-rc/freem scripts/solaris-init/freem
78:
79: systemrtn_DATA = $(mlib)
80: systemd_DATA = scripts/systemd/system/freem.service
81: systemdfedora_DATA = scripts/systemd/fedora/freem.service
82: freebsdrc_DATA = scripts/freebsd-rc/freem
83: solarisinit_DATA = scripts/solaris-init/freem
84:
85: install-exec-hook:
86: chmod 755 $(DESTDIR)$(bindir)/freem*
87:
88: install-data-hook:
89: @echo
90: @echo "============================================================================================"
91: @echo
92: @echo " FreeM has been installed."
93: @echo
94: @echo " If this is the first time you have installed FreeM on this system, you"
95: @echo " must run \"fmadm configure\" before using FreeM."
96: @echo
97: @echo " If you had already installed a prior FreeM version on this system, you"
98: @echo " may need to run \"fmadm reconfigure\" in order to update your FreeM"
99: @echo " installation with the latest appropriate configuration data for this"
100: @echo " FreeM release."
101: @echo
102: @echo " You can access FreeM documentation by typing \"info freem\" in your"
103: @echo " system shell, typing \"?\" at the FreeM direct-mode prompt, or"
104: @echo " visiting https://freem.coherent-logic.com/docs/ in your web browser."
105: @echo
106: @echo " NOTE ON MULTI-ENVIRONMENT SUPPORT:"
107: @echo " If you are upgrading from a previous version of FreeM that lacked"
108: @echo " support for multiple, concurrent environments, you will need to"
109: @echo " move routines and globals into the proper directories."
110: @echo
111: @echo " See the FreeM Wiki for further details:"
112: @echo " https://freem-wiki.coherent-logic.com/index.php/Upgrading_to_Multi-Environment_Support"
113: @echo
114: @echo "============================================================================================"
115:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>