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 af976d5 commit 9f182cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ EXTRA_DIST = \
gettext.h \
chkskel.sh

MOSTLYCLEANFILES = stage1scan.c
MOSTLYCLEANFILES = \
$(SKELINCLUDES) \
stage1scan.c

CLEANFILES = stage1flex$(EXEEXT)

Expand All @@ -108,9 +110,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 9f182cb

Please sign in to comment.