Commit 0056329 1 parent 7c0fce5 commit 0056329 Copy full SHA for 0056329
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 34
34
rm ${targets} \
35
35
$(addsuffix .c, ${targets}) \
36
36
bacmp \
37
+ * .tar.gz \
37
38
* .o * ~ core \
38
39
input.do output.do output.ba \
39
40
2> /dev/null || true
@@ -70,6 +71,15 @@ distcheck: all
70
71
# Maybe useful for copying to projects without requiring a dependency on flex.
71
72
cfiles : $(addsuffix .c, ${targets})
72
73
74
+ # Dirname so we can create tar files that unpack into a directory
75
+ thisdir := $(notdir $(shell pwd) )
76
+
73
77
artifacts : all cfiles
74
- tar -zcf linux-amd64.tar.gz ${targets} bacmp ${scripts}
75
- tar -zcf cfiles.tar.gz $(addsuffix .c, ${targets}) m100-tokenize-main.c bacmp.c ${scripts}
78
+ tar -C .. -zcf ../source.tar.gz \
79
+ --exclude=' *reference*' --exclude=' .git*' --exclude=' *.tar.gz' \
80
+ ${thisdir}
81
+ mv ../source.tar.gz .
82
+ tar -C .. -zcf linux-amd64.tar.gz \
83
+ $(addprefix ${thisdir}/, ${targets} bacmp ${scripts})
84
+ tar -C .. -zcf cfiles.tar.gz \
85
+ $(addprefix ${thisdir}/, $(addsuffix .c, ${targets}) m100-tokenize-main.c bacmp.c ${scripts})
You can’t perform that action at this time.
0 commit comments