Add target for archive generation of sources

This commit is contained in:
zenon 2018-06-09 13:51:34 +02:00
parent b83f143c9d
commit e69a37de12

View File

@ -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 CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
LDFLAGS = -lrt -lpthread LDFLAGS = -lrt -lpthread
.PHONY: all clean docs docs_clean .PHONY: all clean docs docs_clean archive archive_clean
all: supervisor generator all: supervisor generator
@ -25,8 +25,14 @@ generator: generator.o
docs: Doxyfile supervisor.c generator.c common.h docs: Doxyfile supervisor.c generator.c common.h
doxygen Doxyfile doxygen Doxyfile
archive: Doxyfile supervisor.c generator.c common.h
tar -czvf exercise3.tgz $^
clean: clean:
rm -f supervisor.o supervisor generator.o generator common.h.gch rm -f supervisor.o supervisor generator.o generator common.h.gch
docs_clean: docs_clean:
rm -rf html rm -rf html
archive_clean:
rm -rf exercise3.tgz