update makefile
This commit is contained in:
parent
76a9e3a5ca
commit
5d26a7fb5e
16
Makefile.in
16
Makefile.in
@ -29,7 +29,7 @@ out_targets := $(foreach schedule,$(schedules),$(builddir)/units/cron-$(schedul
|
|||||||
out_units := $(out_services) $(out_timers) $(out_targets) $(builddir)/units/cron.target \
|
out_units := $(out_services) $(out_timers) $(out_targets) $(builddir)/units/cron.target \
|
||||||
$(builddir)/units/cron-update.path $(builddir)/units/cron-update.service \
|
$(builddir)/units/cron-update.path $(builddir)/units/cron-update.service \
|
||||||
$(builddir)/units/cron-failure@.service
|
$(builddir)/units/cron-failure@.service
|
||||||
out_manuals := $(patsubst $(srcdir)/man/%.in,$(builddir)/man/%,$(wildcard $(srcdir)/man/*))
|
out_manuals := $(patsubst $(CURDIR)/man/%.in,$(builddir)/man/%,$(wildcard $(CURDIR)/man/*))
|
||||||
out_programs := $(patsubst $(srcdir)/bin/%.rs,$(builddir)/bin/%,$(wildcard $(srcdir)/bin/*.rs))
|
out_programs := $(patsubst $(srcdir)/bin/%.rs,$(builddir)/bin/%,$(wildcard $(srcdir)/bin/*.rs))
|
||||||
outputs := $(out_units) $(out_manuals) $(out_programs)
|
outputs := $(out_units) $(out_manuals) $(out_programs)
|
||||||
|
|
||||||
@ -39,21 +39,15 @@ define \n
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
null :=
|
null :=
|
||||||
requires = $(subst ${null} ${null},\n,$(foreach schedule,$(schedules),Requires=cron-$(schedule).timer))
|
persistent = $(if $(filter $(enable_persistent),yes),persistent,)
|
||||||
persistent = $(if $(filter $(enable_persistent),yes),True,False)
|
|
||||||
|
|
||||||
all: $(builddir) $(outputs)
|
all: $(builddir) $(outputs)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(outdir) $(builddir)
|
rm -rf $(outdir)
|
||||||
|
|
||||||
distprep: $(distdir)
|
distprep: $(distdir)
|
||||||
cp -a configure $(distdir)
|
cp -a configure Makefile.in LICENSE README.md VERSION src man units $(distdir)
|
||||||
cp -a Makefile.in $(distdir)
|
|
||||||
cp -a LICENSE $(distdir)
|
|
||||||
cp -a README.md $(distdir)
|
|
||||||
cp -a VERSION $(distdir)
|
|
||||||
cp -a src $(distdir)
|
|
||||||
|
|
||||||
dist: $(tarball)
|
dist: $(tarball)
|
||||||
|
|
||||||
@ -63,7 +57,7 @@ test: all
|
|||||||
cargo test
|
cargo test
|
||||||
|
|
||||||
build: all
|
build: all
|
||||||
cargo install --path . --root $(builddir)
|
cargo install --path $(CURDIR) --root $(builddir) --features "$(schedules) $(persistent)"
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
install -m2755 -g `getent group cron || echo root` -s -D $(builddir)/bin/crontab $(DESTDIR)$(bindir)/crontab
|
install -m2755 -g `getent group cron || echo root` -s -D $(builddir)/bin/crontab $(DESTDIR)$(bindir)/crontab
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
systemd-cron-next [![Travis](https://img.shields.io/travis/systemd-cron/systemd-cron-next.svg)](https://travis-ci.org/systemd-cron/systemd-cron-next)
|
systemd-cron-next
|
||||||
=========================
|
=================
|
||||||
|
|
||||||
|
[![Travis](https://img.shields.io/travis/systemd-cron/systemd-cron-next.svg)](https://travis-ci.org/systemd-cron/systemd-cron-next)
|
||||||
|
|
||||||
## What's it?
|
## What's it?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user