aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-09 15:34:37 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-09 15:34:37 -0400
commitba8fb6d6b6c0c16c056437404de7939cecc9c2cd (patch)
tree8df2eb9d8675993a1cbc9ab6dbf898b63c2465ee /makefile
parent698dd8d2ebcba45a79c6126c698991110d0c9a76 (diff)
Add makefile rule to create tarball
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefile b/makefile
index 0ba1dd0..724d53f 100644
--- a/makefile
+++ b/makefile
@@ -40,3 +40,21 @@ headers: pc.h tree.h sem_check.h scope.h node.h y.tab.c gen_code.h
clean:
rm -f mypc *.o y.tab.* lex.yy.*
+
+tar: headers pc.y pc.l tree.c scope.c node.c pc.c sem_check.c gen_code.c
+ tar -czf evans_pc.tar.gz -C ../ \
+ pascal_compiler/gen_code.c \
+ pascal_compiler/gen_code.h \
+ pascal_compiler/main.c \
+ pascal_compiler/node.c \
+ pascal_compiler/node.h \
+ pascal_compiler/pc.h \
+ pascal_compiler/pc.l \
+ pascal_compiler/pc.y \
+ pascal_compiler/scope.c \
+ pascal_compiler/scope.h \
+ pascal_compiler/tree.c \
+ pascal_compiler/tree.h \
+ pascal_compiler/sem_check.c \
+ pascal_compiler/sem_check.h \
+ pascal_compiler/makefile