Skip to content

Commit 00dabe5

Browse files
committed
rename artifacts to be easier to browse from github releases
Binary executables now are called "bin-Linux-x86_64.tar.gz" (modulo os) The code needed to compile without flex is called "cfiles.tar.gz". The source code itself is named just "tokenize.tar.gz", as it should be. All archives create a "tokenize" directory to put files inside.
1 parent 7eda13f commit 00dabe5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Makefile

+8-9
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ cfiles=$(addsuffix .c, ${targets})
139139
cfiles: ${cfiles}
140140

141141
# Create all tar files.
142-
artifacts: tokenize.tar.gz tokenize-${platform}.tar.gz tokenize-cfiles.tar.gz
142+
artifacts: tokenize.tar.gz bin-${platform}.tar.gz cfiles.tar.gz
143143

144144
# Entire project archive.
145145
tokenize.tar.gz: ${targets} ${cfiles}
@@ -148,13 +148,12 @@ tokenize.tar.gz: ${targets} ${cfiles}
148148
${thisdir}
149149
mv ../$@ .
150150

151-
# Executable binaries for a specific platform
152-
tokenize-${platform}.tar.gz: ${targets} bacmp
153-
tar ${xform} -acf $@ \
154-
${targets} ${scripts} bacmp
151+
# Executable binaries for a specific platform.
152+
bin-${platform}.tar.gz: ${targets} ${scripts} bacmp
153+
tar ${xform} -acf $@ $^
155154

156-
# Just the code needed to compile without flex
157-
tokenize-cfiles.tar.gz: ${cfiles}
158-
tar ${xform} -acf $@ \
159-
${cfiles} m100-tokenize-main.c bacmp.c ${scripts} Makefile
155+
# Just the code needed to compile without flex.
156+
cfiles.tar.gz: ${cfiles} m100-tokenize-main.c bacmp.c ${scripts} Makefile
157+
tar ${xform} -acf $@ $^
160158

159+
# Reminder to self: $@ is target, $^ is all prerequisites, $< is 1st prereq.

0 commit comments

Comments
 (0)