diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-10-21 17:24:02 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-10-21 17:33:18 +0800 |
commit | 6eb80220249bbbb73a3a9449fa3c65c854f38997 (patch) | |
tree | 660d03dcd0c2c5eeced2ac0a382681111a356ce3 | |
parent | 9d8d381565417239440ce0c58e1b8011aa70c9db (diff) | |
download | compiler2015-6eb80220249bbbb73a3a9449fa3c65c854f38997.tar.gz compiler2015-6eb80220249bbbb73a3a9449fa3c65c854f38997.tar.zst compiler2015-6eb80220249bbbb73a3a9449fa3c65c854f38997.zip |
Don't include file generated by flex in submitted homework
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 074fcab..95190d9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,6 +22,7 @@ liblexer_a_LFLAGS = --header-file=lexer.h liblexer_a_SOURCES = \ lexer.l \ $(NULL) +lexer.h: liblexer_a-lexer.c BUILT_SOURCES = lexer.h @@ -31,6 +32,8 @@ submit: dist tar -zxf $(DIST_ARCHIVES) mv $(distdir) $(submit_dir_name) cp -a $(submit_dir_name)/Makefile.simple $(submit_dir_name)/Makefile + rm $(submit_dir_name)/liblexer_a-lexer.c + rm $(submit_dir_name)/lexer.h ver=`git rev-list HEAD | wc -l` && tar -jpcf \ $(submit_tarball_prefix)_ver$$ver.tar.bz2 $(submit_dir_name) rm -rf $(submit_dir_name) |