From e69a37de1264b3dec2b0bb713eae70981ba98c25 Mon Sep 17 00:00:00 2001 From: zenon Date: Sat, 9 Jun 2018 13:51:34 +0200 Subject: [PATCH] Add target for archive generation of sources --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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