Makefile for installing

This commit is contained in:
Mirek Kratochvil 2014-06-07 11:31:58 +02:00
parent afcc0b5ede
commit eaf2cc11c3

View file

@ -1,9 +1,11 @@
DESTDIR=/usr DESTDIR=/usr
prefix := ${DESTDIR}/sbin/
progs := zb-cleanup zb-pull zb-snap
targets := $(foreach prog, $(progs), $(prefix)$(prog) )
install: $(prefix)zb-% : zb-%
cp zb-cleanup ${DESTDIR}/bin/zb-cleanup install ${INSTALL_FLAGS} $< $@
cp zb-pull ${DESTDIR}/bin/zb-pull
cp zb-snap ${DESTDIR}/bin/zb-snap install: $(targets)
cp zb-cron ${DESTDIR}/bin/zb-cron