Skip to content

Commit 7c0fce5

Browse files
committed
Add 'make artifacts' to build .tar.gz files
linux-amd64.tar.gz contains the linux specific binaries plus the script tokenize and m100-sanity. cfiles.tar.gz contains the C files generated from the lex files plus the scripts. Maybe useful for copying to projects without requiring a dependency on flex.
1 parent 5f4baac commit 7c0fce5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ debug : all
1919

2020
# Utility targets are "PHONY" so they'll run even if a file exists
2121
# with the same name.
22-
.PHONY: install uninstall clean test check distcheck cfiles
22+
.PHONY: install uninstall clean test check distcheck cfiles artifacts
2323

24-
install: ${targets}
24+
install: ${targets} bacmp
2525
cp -p $^ ${prefix}/bin/
2626
cp -p ${scripts} ${prefix}/bin/
2727

2828
uninstall:
29-
for f in ${targets} ${scripts}; do \
29+
for f in ${targets} bacmp ${scripts}; do \
3030
rm ${prefix}/bin/$$f 2>/dev/null || true; \
3131
done
3232

@@ -69,3 +69,7 @@ distcheck: all
6969
# Create the intermediate .c files from *.lex.
7070
# Maybe useful for copying to projects without requiring a dependency on flex.
7171
cfiles: $(addsuffix .c, ${targets})
72+
73+
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}

0 commit comments

Comments
 (0)