From ea648c07305cd3447b8ec71f2dcadf7e5e1796fa Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Wed, 28 Dec 2016 23:30:18 +0100 Subject: build: Move executable to "bin" directory. * Makefile.am (bin_PROGRAMS, sbin_PROGRAMS): Prepend "bin/" to every program. (mcron_SOURCES, mcron_CPPFLAGS, mcron_DEPENDENCIES): Rename to ... (bin_mcron_SOURCES, bin_mcron_CPPFLAGS, bin_mcron_DEPENDENCIES): ... this. (cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES): Rename to ... (bin_cron_SOURCES, bin_cron_CPPFLAGS, bin_cron_DEPENDENCIES): ... this. (crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES): Rename to ... (bin_crontab_SOURCES, bin_crontab_CPPFLAGS, bin_crontab_DEPENDENCIES): ($(srcdir)/doc/cron.8, $(srcdir)/doc/crontab.1, $(srcdir)/doc/mcron.1): Update prerequisite. * build-aux/pre-inst-env.in (PATH): Use "bin" directory. * .gitignore: Update. --- Makefile.am | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index a1d6be4..d31eacb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,24 +17,24 @@ # You should have received a copy of the GNU General Public License # along with GNU Mcron. If not, see . -bin_PROGRAMS = mcron crontab -sbin_PROGRAMS = cron +bin_PROGRAMS = bin/mcron bin/crontab +sbin_PROGRAMS = bin/cron AM_CPPFLAGS = -DPACKAGE_LOAD_PATH=\"$(moduledir)\" AM_CFLAGS = @GUILE_CFLAGS@ LDADD = @GUILE_LIBS@ -mcron_SOURCES = src/wrapper.c -mcron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"mcron\"" -mcron_DEPENDENCIES = $(modules:%.scm=%.go) +bin_mcron_SOURCES = src/wrapper.c +bin_mcron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"mcron\"" +bin_mcron_DEPENDENCIES = $(modules:%.scm=%.go) -cron_SOURCES = src/wrapper.c -cron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"cron\"" -cron_DEPENDENCIES = $(modules:%.scm=%.go) +bin_cron_SOURCES = src/wrapper.c +bin_cron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"cron\"" +bin_cron_DEPENDENCIES = $(modules:%.scm=%.go) -crontab_SOURCES = src/wrapper.c -crontab_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"crontab\"" -crontab_DEPENDENCIES = $(modules:%.scm=%.go) +bin_crontab_SOURCES = src/wrapper.c +bin_crontab_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"crontab\"" +bin_crontab_DEPENDENCIES = $(modules:%.scm=%.go) dist_mcronmodule_DATA = \ src/mcron/base.scm \ @@ -180,13 +180,13 @@ gen_man = \ *) : ;; \ esac -$(srcdir)/doc/mcron.1: src/mcron/scripts/mcron.scm mcron +$(srcdir)/doc/mcron.1: src/mcron/scripts/mcron.scm bin/mcron -@prog="mcron"; man_section=1; $(gen_man) -$(srcdir)/doc/crontab.1: src/mcron/scripts/crontab.scm crontab +$(srcdir)/doc/crontab.1: src/mcron/scripts/crontab.scm bin/crontab -@prog="crontab"; man_section=1; $(gen_man) -$(srcdir)/doc/cron.8: src/mcron/scripts/cron.scm cron +$(srcdir)/doc/cron.8: src/mcron/scripts/cron.scm bin/cron -@prog="cron"; man_section=8; $(gen_man) ## -------------- ## -- cgit v1.2.3