Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Makefile improvements with skeleton sources #640

Merged
merged 4 commits into from
Apr 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
build: let "make mostlyclean" delete "*-flex.h".
These skeleton header files can be easily regenerated.

(The things that "mostlyclean" shouldn't delete are files that are more
expensive to rebuild, e.g. library archives and linked executables.)

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
  • Loading branch information
Explorer09 committed Mar 30, 2024
commit bda3a70aa8293e572493c7a0a9ab29b980a87a99
4 changes: 1 addition & 3 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -101,6 +101,7 @@ EXTRA_DIST = \
chkskel.sh

MOSTLYCLEANFILES = \
$(SKELINCLUDES) \
stage1scan.c

CLEANFILES = stage1flex$(EXEEXT)
@@ -110,9 +111,6 @@ SKELINCLUDES = \
c99-flex.h \
go-flex.h

clean-local:
rm -f $(SKELINCLUDES)

cpp-flex.h: cpp-flex.skl mkskel.sh flexint_shared.h tables_shared.h tables_shared.c
$(SHELL) $(srcdir)/mkskel.sh cpp $(srcdir) $(m4) $(VERSION) > $@.tmp
$(SHELL) $(srcdir)/chkskel.sh $@.tmp