www.pudn.com > allocator.rar > Makefile
TAR=tar
all:
cd src; make all
tags:
$(RM) $@
find ./ -follow \( -name "*.[chCH]" -o -name "*.cc" \
-o -name "*.hh" \) -print | etags - -C -o TAGS
clean:
cd src; make clean
backup:
@echo "Disk contents before backup:"
-$(TAR) tvjf /dev/fd0
@echo "Backup with compression: tar cvjf /dev/fd0 "
-$(TAR) cvjf /dev/fd0 src/ src/Makefile Makefile include/ include/Makefile \
test/*.cc test/Makefile doc/ scripts/
@echo "Disk space in use: /bin/df -k /dev/fd0"
/bin/df -k /dev/fd0
@echo "Disk contents after backup:"
-$(TAR) tvjf /dev/fd0
restore:
@echo "Disk contents for restore:"
-$(TAR) tvjf /dev/fd0
@echo "Restoring from compressed archive: tar cvjf /dev/fd0 "
-$(TAR) xvjf /dev/fd0