/
Makefile.am
44 lines (34 loc) · 1.83 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile for `zon' utility
# Copyright (C) 2021-2022 Michael Welter
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This program 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 General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
bin_PROGRAMS = zon
AM_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
zon_SOURCES = src/zon.c
EXTRA_DIST = src/astro.c src/zon_options.c zon.1
exampledir = $(docdir)/examples
dist_example_DATA = src/doc/examples/zon-set.service src/doc/examples/zon-rise.service src/doc/examples/zon-rise.timer src/doc/examples/zon-set.timer src/doc/examples/zon-nighttime.target src/doc/examples/zon-daytime.target
man_MANS = zon.1
zon.1: src/zon_options.c README configure.ac
@echo "W: !!!! WARNING !!!! Manpage zon.1 might be outdated - regenerate with 'make help2man' if you are NOT cross-compiling."
help2man:
-$(HELP2MAN) --no-info -i README -o zon.1 -n "zon [Options...] -- scriptable time output about sun rise and set in UTC" ./zon
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir='$$(prefix)/$(systemdsystemunitdir)'
# --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
if HAVE_SYSTEMD
systemdsystemunit_DATA = src/doc/examples/zon-rise.timer \
src/doc/examples/zon-rise.service\
src/doc/examples/zon-set.timer \
src/doc/examples/zon-nighttime.target \
src/doc/examples/zon-set.service \
src/doc/examples/zon-daytime.target
endif