Skip to content

Commit

Permalink
build: let "make mostlyclean" delete "*-flex.h".
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Explorer09 committed Mar 30, 2024
1 parent 3f9da7b commit bda3a70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ EXTRA_DIST = \
chkskel.sh

MOSTLYCLEANFILES = \
$(SKELINCLUDES) \
stage1scan.c

CLEANFILES = stage1flex$(EXEEXT)
Expand All @@ -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
Expand Down

0 comments on commit bda3a70

Please sign in to comment.