Commit 1e9860f 1 parent 80269df commit 1e9860f Copy full SHA for 1e9860f
File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -115,15 +115,22 @@ test-m100-crunch: m100-crunch
115
115
# Maybe useful for copying to projects without requiring a dependency on flex.
116
116
cfiles : $(addsuffix .c, ${targets})
117
117
118
- # Dirname so we can create tar files that unpack into a directory
118
+
119
+ # ###
120
+ # thisdir, used to create tar files that unpack into a directory
119
121
thisdir := $(notdir $(shell pwd) )
122
+ xform := --xform "s%^%${thisdir}/%"
123
+ # platform, specify the machine os and architecture in the .tar.gz filename
124
+ platform := $(shell uname -s) -$(shell uname -m)
120
125
121
126
artifacts : all cfiles
122
127
tar -C .. -zcf ../tokenize-source.tar.gz \
123
128
--exclude=' *reference*' --exclude=' .git*' --exclude=' *.tar.gz' \
124
129
${thisdir}
125
130
mv ../tokenize-source.tar.gz .
126
- tar -C .. -zcf tokenize-linux-amd64.tar.gz \
127
- $(addprefix ${thisdir}/, ${targets} bacmp ${scripts})
128
- tar -C .. -zcf tokenize-cfiles.tar.gz \
129
- $(addprefix ${thisdir}/, $(addsuffix .c, ${targets}) m100-tokenize-main.c bacmp.c ${scripts})
131
+ tar ${xform} -acf tokenize-${platform} .tar.gz \
132
+ ${targets} ${scripts} bacmp
133
+ tar ${xform} -acf tokenize-cfiles.tar.gz \
134
+ $(addsuffix .c, ${targets}) \
135
+ m100-tokenize-main.c bacmp.c \
136
+ ${scripts}
You can’t perform that action at this time.
0 commit comments