File:  [Coherent Logic Development] / freem / Makefile.am
Revision 1.7: download - view: text, annotated - select for diffs
Thu Mar 27 03:47:46 2025 UTC (4 days, 5 hours ago) by snw
Branches: MAIN
CVS tags: HEAD
Fix dist problems

#
#   $Id: Makefile.am,v 1.7 2025/03/27 03:47:46 snw Exp $
#    automake rules for freem
#
#  
#   Author: Serena Willis <snw@coherent-logic.com>
#    Copyright (C) 1998 MUG Deutschland
#    Copyright (C) 2020, 2025 Coherent Logic Development LLC
#
#
#   This file is part of FreeM.
#
#   FreeM is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   FreeM is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero Public License for more details.
#
#   You should have received a copy of the GNU Affero Public License
#   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
#
#   $Log: Makefile.am,v $
#   Revision 1.7  2025/03/27 03:47:46  snw
#   Fix dist problems
#
#   Revision 1.6  2025/03/27 03:27:34  snw
#   Install init scripts to share/freem/examples/init and fix regression in method dispatch
#
#   Revision 1.5  2025/03/24 04:21:39  snw
#   Attempted installer fix for OS/2
#
#   Revision 1.4  2025/03/10 00:42:41  snw
#   Fix broken build regression
#
#   Revision 1.3  2025/03/09 19:14:24  snw
#   First phase of REUSE compliance and header reformat
#
#
# SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
# SPDX-License-Identifier: AGPL-3.0-or-later
#
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc
dist_doc_DATA = README.md doc/freem.1

man1_MANS = doc/freem.1
info_TEXINFOS = doc/freem.texi

systemgbldir = $(localstatedir)/freem/DEFAULT/SYSTEM/globals
systemrtndir = $(localstatedir)/freem/DEFAULT/SYSTEM/routines
usergbldir = $(localstatedir)/freem/DEFAULT/USER/globals
userrtndir = $(localstatedir)/freem/DEFAULT/USER/routines
journaldir = $(localstatedir)/freem/DEFAULT/journals
systemddir = $(datadir)/freem/examples/init/systemd
systemdfedoradir = $(datadir)/freem/examples/init/systemd/fedora
freebsdrcdir = $(datadir)/freem/examples/init/freebsd_rc
solarisinitdir = $(datadir)/freem/examples/init/solaris

mlib = mlib/%DB.m mlib/%MAPPING.m mlib/%NETHTTP.m \
       mlib/%SYSINIT.m mlib/%TUIMENU.m mlib/%ZCOLUMNS.m \
       mlib/%ZFRMSAMP.m mlib/%ZFRMXEC.m mlib/%ZHELP.m mlib/%ZMAINT.m \
       mlib/%SYSWMERGE.m mlib/%ZREVQRY.m mlib/%ZROWS.m \
       mlib/%SYSPOLY.m mlib/%ulstring.m mlib/%ulmath.m mlib/%ulcharacter.m \
       mlib/%SYSOOP.m mlib/%STRING.m mlib/%OBJECT.m mlib/%ED.m

EXTRA_DIST = sem.ver sysns_routine.txt sysns_global.txt userns_routine.txt userns_global.txt journals.txt $(mlib) \
             scripts/systemd/system/freem.service scripts/systemd/fedora/freem.service scripts/freebsd-rc/freem scripts/solaris-init/freem

systemrtn_DATA = $(mlib) sysns_routine.txt
systemgbl_DATA = sysns_global.txt
userrtn_DATA = userns_routine.txt
usergbl_DATA = userns_global.txt
journal_DATA = journals.txt
systemd_DATA = scripts/systemd/system/freem.service
systemdfedora_DATA = scripts/systemd/fedora/freem.service
freebsdrc_DATA = scripts/freebsd-rc/freem
solarisinit_DATA = scripts/solaris-init/freem

install-exec-hook:
	chmod 755 $(DESTDIR)$(bindir)/freem*

install-data-hook:
	chmod -R 777 $(DESTDIR)$(journaldir) $(DESTDIR)$(systemgbldir) $(DESTDIR)$(usergbldir) $(DESTDIR)$(userrtndir)
	chmod -R 755 $(DESTDIR)$(systemrtndir)
	@echo
	@echo "============================================================================================"
	@echo
	@echo " FreeM has been installed."
	@echo
	@echo " If this is the first time you have installed FreeM on this system, you"
	@echo " must run \"fmadm configure\" before using FreeM."
	@echo
	@echo " If you had already installed a prior FreeM version on this system, you"
	@echo " may need to run \"fmadm reconfigure\" in order to update your FreeM"
	@echo " installation with the latest appropriate configuration data for this"
	@echo " FreeM release."	
	@echo
	@echo " You can access FreeM documentation by typing \"info freem\" in your"
	@echo " system shell, typing \"?\" at the FreeM direct-mode prompt, or"
	@echo " visiting https://freem.coherent-logic.com/docs/ in your web browser."
	@echo
	@echo " NOTE ON MULTI-ENVIRONMENT SUPPORT:"
	@echo "  If you are upgrading from a previous version of FreeM that lacked"
	@echo "  support for multiple, concurrent environments, you will need to"
	@echo "  move routines and globals into the proper directories."
	@echo
	@echo "  See the FreeM Wiki for further details:"
	@echo "   https://freem-wiki.coherent-logic.com/index.php/Upgrading_to_Multi-Environment_Support"
	@echo 
	@echo "============================================================================================"


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>