mkimage-profiles/features.in/Makefile

20 lines
537 B
Makefile
Raw Normal View History

include $(BUILDDIR)/.config.mk
# make rsync backups
all:
for dir in $(FEATURES); do \
for sub in $(SUBPROFILES); do \
dest=$${sub%stage1}; \
echo "dir/sub: [$$dir/$$sub/]" && \
[ -d $$dir/$$sub/ ] && \
echo rsync -ab $$dir/$$sub/ $(BUILDDIR)/$$dest/ && \
rsync -ab $$dir/$$sub/ $(BUILDDIR)/$$dest/ && \
cd $(BUILDDIR)/$$dest/ && \
git add . && \
git commit -qam "$@/$$dir/$$sub" && \
cd ->&/dev/null; \
done; \
done; \
find $(BUILDDIR) -name '*~'
@# these might signal of file clashes (or plain dirt)