summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 6018defeb2ca2964c0c5bd58bc03b2f1a2f78bd7 (plain) (tree)
1
2
3

               
             



























                                                             


                                          



                   
                             




























                                                 

                          
 






                                                    

                                                    
 
            

                           
 
                                             
#!/usr/bin/make
#
# root - make
#
# 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)


all:
	@echo "Give me something to make."

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)

report:
	@$(MAKE) -C report

report-clean:
	@find report/ -name '*.aux' -exec rm -f {} +
	@find report/ -name '*.dvi' -exec rm -f {} +
	@find report/ -name '*.lof' -exec rm -f {} +
	@find report/ -name '*.log' -exec rm -f {} +
	@find report/ -name '*.lot' -exec rm -f {} +
	@find report/ -name '*.toc' -exec rm -f {} +
	@find report/ -name '*.bbl' -exec rm -f {} +
	@find report/ -name '*.blg' -exec rm -f {} +

blobs-clean:
	@rm -f $(ALL_BLOBS)
	@rmdir $(BLOB_DIR)

.PHONY: blobs blobs-clean report report-clean