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
|
2021-08-09 15:08:54 +02:00
|
|
|
sbin_PROGRAMS += anacron/anacron
|
|
|
|
anacron_anacron_SOURCES = \
|
|
|
|
anacron-paths.h \
|
|
|
|
anacron/global.h \
|
|
|
|
anacron/gregor.c \
|
|
|
|
anacron/gregor.h \
|
|
|
|
anacron/lock.c \
|
|
|
|
anacron/log.c \
|
|
|
|
anacron/main.c \
|
|
|
|
anacron/matchrx.c \
|
|
|
|
anacron/matchrx.h \
|
|
|
|
anacron/readtab.c \
|
|
|
|
anacron/runjob.c
|
|
|
|
common_nodist += anacron-paths.h
|
|
|
|
nodist_anacron_anacron_SOURCES = $(common_nodist)
|
|
|
|
BUILT_SOURCES += $(common_nodist)
|
2017-05-08 15:30:03 +02:00
|
|
|
|
2021-08-09 15:08:54 +02:00
|
|
|
anacron_anacron_LDADD = $(LIBSELINUX) $(LIBPAM) $(LIBAUDIT)
|
2017-05-08 15:30:03 +02:00
|
|
|
|
|
|
|
# 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.
|
2021-08-09 15:08:54 +02:00
|
|
|
CLEANFILES += anacron-paths.h
|
2017-05-08 15:30:03 +02:00
|
|
|
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
|
2021-08-09 15:08:54 +02:00
|
|
|
endif
|