diff --git a/Makefile b/Makefile index 5f02dd1..77317db 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CC = gcc CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c LDFLAGS = -lrt -lpthread -.PHONY: all clean docs docs_clean +.PHONY: all clean docs docs_clean archive archive_clean all: supervisor generator @@ -25,8 +25,14 @@ generator: generator.o docs: Doxyfile supervisor.c generator.c common.h doxygen Doxyfile +archive: Doxyfile supervisor.c generator.c common.h + tar -czvf exercise3.tgz $^ + clean: rm -f supervisor.o supervisor generator.o generator common.h.gch docs_clean: rm -rf html + +archive_clean: + rm -rf exercise3.tgz