Skip to content

Commit

Permalink
autotools: Make all "pregenerated" targets .PHONY
Browse files Browse the repository at this point in the history
This follows the automake conventions more, see:
https://www.gnu.org/software/automake/manual/html_node/Clean.html
  • Loading branch information
real-or-random committed Apr 25, 2023
1 parent e1b9ce8 commit 8764034
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.PHONY: clean-precomp precomp

ACLOCAL_AMFLAGS = -I build-aux/m4

# AM_CFLAGS will be automatically prepended to CFLAGS by Automake when compiling some foo
Expand Down Expand Up @@ -218,10 +216,10 @@ precomp: $(PRECOMP)
# e.g., after `make maintainer-clean`).
BUILT_SOURCES = $(PRECOMP)

maintainer-clean-local: clean-precomp

.PHONY: clean-precomp
clean-precomp:
rm -f $(PRECOMP)
maintainer-clean-local: clean-precomp

### Pregenerated test vectors
### (see the comments in the previous section for detailed rationale)
Expand All @@ -234,10 +232,10 @@ testvectors: $(TESTVECTORS)

BUILT_SOURCES += $(TESTVECTORS)

maintainer-clean-local: clean-testvectors

.PHONY: clean-testvectors
clean-testvectors:
rm -f $(TESTVECTORS)
maintainer-clean-local: clean-testvectors

### Additional files to distribute
EXTRA_DIST = autogen.sh CHANGELOG.md SECURITY.md
Expand Down

0 comments on commit 8764034

Please sign in to comment.