1: #
2: # $Id: Makefile.am,v 1.15 2025/05/05 14:26:57 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.15 2025/05/05 14:26:57 snw
28: # Add documentation TODO file
29: #
30: # Revision 1.14 2025/05/02 16:25:45 snw
31: # -m
32: #
33: # Revision 1.13 2025/05/02 12:44:47 snw
34: # Documentation updates
35: #
36: # Revision 1.12 2025/04/17 20:11:23 snw
37: # Add freem.conf man page
38: #
39: # Revision 1.11 2025/04/17 17:57:34 snw
40: # Major updates to man pages
41: #
42: # Revision 1.10 2025/04/03 15:51:17 snw
43: # Add fmadm man page and apply minor updates to freem man page
44: #
45: # Revision 1.9 2025/04/03 02:39:02 snw
46: # Remove sysns_routine.txt from Makefile.am
47: #
48: # Revision 1.8 2025/04/01 14:32:10 snw
49: # Begin work on environment and namespace reorg
50: #
51: # Revision 1.7 2025/03/27 03:47:46 snw
52: # Fix dist problems
53: #
54: # Revision 1.6 2025/03/27 03:27:34 snw
55: # Install init scripts to share/freem/examples/init and fix regression in method dispatch
56: #
57: # Revision 1.5 2025/03/24 04:21:39 snw
58: # Attempted installer fix for OS/2
59: #
60: # Revision 1.4 2025/03/10 00:42:41 snw
61: # Fix broken build regression
62: #
63: # Revision 1.3 2025/03/09 19:14:24 snw
64: # First phase of REUSE compliance and header reformat
65: #
66: #
67: # SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
68: # SPDX-License-Identifier: AGPL-3.0-or-later
69: #
70: ACLOCAL_AMFLAGS = -I m4
71: SUBDIRS = src doc
72: dist_doc_DATA = README.md doc/freem.1 doc/fmadm.8 doc/env.conf.5 doc/freem.conf.5 doc/freem_history.txt doc/freem_history.pdf doc/freem_history.ps doc/freem_conformance.1 doc/TODO
73:
74: man1_MANS = doc/freem.1 doc/freem_conformance.1
75: man5_MANS = doc/env.conf.5 doc/freem.conf.5
76: man8_MANS = doc/fmadm.8
77: info_TEXINFOS = doc/freem.texi
78:
79: systemrtndir = $(datadir)/freem/mlib
80: systemddir = $(datadir)/freem/examples/init/systemd
81: systemdfedoradir = $(datadir)/freem/examples/init/systemd/fedora
82: freebsdrcdir = $(datadir)/freem/examples/init/freebsd_rc
83: solarisinitdir = $(datadir)/freem/examples/init/solaris
84:
85: mlib = mlib/%DB.m mlib/%MAPPING.m mlib/%NETHTTP.m \
86: mlib/%SYSINIT.m mlib/%TUIMENU.m mlib/%ZCOLUMNS.m \
87: mlib/%ZFRMSAMP.m mlib/%ZFRMXEC.m mlib/%ZHELP.m mlib/%ZMAINT.m \
88: mlib/%SYSWMERGE.m mlib/%ZREVQRY.m mlib/%ZROWS.m \
89: mlib/%SYSPOLY.m mlib/%ulstring.m mlib/%ulmath.m mlib/%ulcharacter.m \
90: mlib/%SYSOOP.m mlib/%STRING.m mlib/%OBJECT.m mlib/%ED.m
91:
92: EXTRA_DIST = sem.ver $(mlib) \
93: scripts/systemd/system/freem.service scripts/systemd/fedora/freem.service scripts/freebsd-rc/freem scripts/solaris-init/freem
94:
95: systemrtn_DATA = $(mlib)
96: systemd_DATA = scripts/systemd/system/freem.service
97: systemdfedora_DATA = scripts/systemd/fedora/freem.service
98: freebsdrc_DATA = scripts/freebsd-rc/freem
99: solarisinit_DATA = scripts/solaris-init/freem
100:
101: install-exec-hook:
102: chmod 755 $(DESTDIR)$(bindir)/freem*
103:
104: install-data-hook:
105: @echo
106: @echo "============================================================================================"
107: @echo
108: @echo " FreeM has been installed."
109: @echo
110: @echo " If this is the first time you have installed FreeM on this system, you"
111: @echo " must run \"fmadm configure\" before using FreeM."
112: @echo
113: @echo " If you had already installed a prior FreeM version on this system, you"
114: @echo " may need to run \"fmadm reconfigure\" in order to update your FreeM"
115: @echo " installation with the latest appropriate configuration data for this"
116: @echo " FreeM release."
117: @echo
118: @echo " You can access FreeM documentation by typing \"info freem\" in your"
119: @echo " system shell, typing \"?\" at the FreeM direct-mode prompt, or"
120: @echo " visiting https://freem.coherent-logic.com/docs/ in your web browser."
121: @echo
122: @echo " NOTE ON MULTI-ENVIRONMENT SUPPORT:"
123: @echo " If you are upgrading from a previous version of FreeM that lacked"
124: @echo " support for multiple, concurrent environments, you will need to"
125: @echo " move routines and globals into the proper directories."
126: @echo
127: @echo " See the FreeM Wiki for further details:"
128: @echo " https://freem-wiki.coherent-logic.com/index.php/Upgrading_to_Multi-Environment_Support"
129: @echo
130: @echo "============================================================================================"
131:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>