2017-05-08 15:30:03 +02:00
|
|
|
# Makefile.am - two binaries crond and crontab
|
2019-08-06 18:08:05 +02:00
|
|
|
if ANACRON
|
2017-05-08 15:30:03 +02:00
|
|
|
sbin_PROGRAMS = anacron
|
2019-08-06 18:08:05 +02:00
|
|
|
endif
|
2017-05-08 15:30:03 +02:00
|
|
|
|
|
|
|
anacron_SOURCES = \
|
|
|
|
gregor.c lock.c log.c main.c matchrx.c readtab.c runjob.c \
|
|
|
|
$(common_src)
|
|
|
|
common_src = global.h gregor.h matchrx.h
|
|
|
|
common_nodist = anacron-paths.h
|
|
|
|
nodist_anacron_SOURCES = $(common_nodist)
|
|
|
|
BUILT_SOURCES = $(common_nodist)
|
|
|
|
|
2019-08-06 18:08:05 +02:00
|
|
|
AM_CFLAGS = -I$(top_srcdir)
|
2017-05-08 15:30:03 +02:00
|
|
|
|
|
|
|
LDADD = $(LIBSELINUX) $(LIBPAM) $(LIBAUDIT)
|
|
|
|
|
|
|
|
# This header contains all the paths.
|
|
|
|
# If they are configurable, they are declared in configure script.
|
|
|
|
# Depends on this Makefile, because it uses make variables.
|
|
|
|
anacron-paths.h: Makefile
|
|
|
|
@echo 'creating $@'
|
|
|
|
@sed >$@ 's/ *\\$$//' <<\END #\
|
|
|
|
/* This file has been automatically generated. Do not edit. */ \
|
|
|
|
\
|
|
|
|
#ifndef _ANACRON_PATHS_H_ \
|
|
|
|
#define _ANACRON_PATHS_H_ \
|
|
|
|
#define ANACRON_SPOOL_DIR "$(ANACRON_SPOOL_DIR)" \
|
|
|
|
#define ANACRONTAB "$(ANACRONTAB)" \
|
|
|
|
#endif /* _ANACRON_PATHS_H_ */ \
|
|
|
|
END
|