diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-10-17 22:23:35 -0400 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-10-17 22:23:35 -0400 |
commit | 53f69f5924e55e695e88c17d084ae3c3b6fb9f00 (patch) | |
tree | 5775117ccb48494ae9834647e4b9ab8ff5618fc0 | |
parent | ec7e0bfba6eacba64f29ccb61fb98fbcbb0877b8 (diff) |
Makefile: generates blobs now.
-rw-r--r-- | Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
@@ -0,0 +1,71 @@ +#!/usr/bin/make +# +# combox - paper +# +# Makefile +# +# By Siddharth Ravikumar <sravik@bgsu.edu> +# +# No rights reserved. Dedicated to Public Domain. +# <https://creativecommons.org/publicdomain/zero/1.0/> + +F_ALLOC = fallocate +F_ALLOC_OPT = -l + +BLOB_DIR = blobs/ + +# blobs +20MB = $(BLOB_DIR)20MB.blob +30MB = $(BLOB_DIR)30MB.blob +40MB = $(BLOB_DIR)40MB.blob +50MB = $(BLOB_DIR)50MB.blob +60MB = $(BLOB_DIR)60MB.blob +70MB = $(BLOB_DIR)70MB.blob +80MB = $(BLOB_DIR)80MB.blob +90MB = $(BLOB_DIR)90MB.blob +100MB = $(BLOB_DIR)100MB.blob + +ALL_BLOBS = $(20MB) $(30MB) $(40MB) $(50MB) $(60MB) $(70MB) \ + $(80MB) $(90MB) $(100MB) + + +blobs: $(ALL_BLOBS) + + +$(BLOB_DIR): + mkdir -p $(BLOB_DIR) + + +$(20MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 20MiB $(20MB) + +$(30MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 30MiB $(30MB) + +$(40MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 40MiB $(40MB) + +$(50MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 50MiB $(50MB) + +$(60MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 60MiB $(60MB) + +$(70MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 70MiB $(70MB) + +$(80MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 80MiB $(80MB) + +$(90MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 90MiB $(90MB) + +$(100MB): $(BLOB_DIR) + $(F_ALLOC) $(F_ALLOC_OPT) 100MiB $(100MB) + + +blobs-clean: + rm -f $(ALL_BLOBS) + rmdir $(BLOB_DIR) + +.PHONY: blobs blobs-clean |