SummaryRefsLogTreeCommitDiffStats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-12-28 23:30:18 +0100
committerMathieu Lirzin <mthl@gnu.org>2016-12-28 23:39:14 +0100
commitea648c07305cd3447b8ec71f2dcadf7e5e1796fa (patch)
treeb658d8b59d685ca5daa4f768424e5d9e86a2acf4 /Makefile.am
parenta3051133c0370abcbff266441e177ce81920457a (diff)
downloadmcron-ea648c07305cd3447b8ec71f2dcadf7e5e1796fa.tar.gz
mcron-ea648c07305cd3447b8ec71f2dcadf7e5e1796fa.tar.bz2
mcron-ea648c07305cd3447b8ec71f2dcadf7e5e1796fa.zip
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.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am28
1 files changed, 14 insertions, 14 deletions
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 <http://www.gnu.org/licenses/>.
-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)
## -------------- ##