Skip to content

Fix Makefile cleanup#1159

Merged
jimklimov merged 36 commits intonetworkupstools:masterfrom
jimklimov:fix-makefile-cleanup
Nov 6, 2021
Merged

Fix Makefile cleanup#1159
jimklimov merged 36 commits intonetworkupstools:masterfrom
jimklimov:fix-makefile-cleanup

Conversation

@jimklimov
Copy link
Copy Markdown
Member

@jimklimov jimklimov commented Nov 5, 2021

A git clone, build, check, possible make distcheck and finally make distclean should leave the Git workspace in pristine condition - no generated files remaining, no tracked files removed :)

Note: in this case, distclean removes just the files that can be recreated by running the configure script, and realclean wipes also files created by running ./autogen.sh including the generated configure script and files that autotools copies from its own local installation. It was tested that both do not preclude the generated "dist tarball" to include such files, and be buildable with make distcheck.

The dist tarball contains same list of files as before (this took a bit of back and forth).

Due to peculiarities of some make implementations, and our inter-directory dependencies much improved by #1151, this simple goal proved tricky to achieve; in particular alas $< is not always usable.

…rrent builddir, do avoid external ".deps/" usage
…tory into current builddir, do avoid external ".deps/" usage
@jimklimov
Copy link
Copy Markdown
Member Author

TODO/TRY: for later commits to make do with distchecks, instead of testing that linked source file is missing (dist seems to package it, and as a file not symlink), but better use NODIST keywords to not deliver the unneeded file at all.

@jimklimov jimklimov merged commit 148fa0c into networkupstools:master Nov 6, 2021
@jimklimov jimklimov deleted the fix-makefile-cleanup branch November 6, 2021 19:54
jimklimov added a commit to jimklimov/nut that referenced this pull request Nov 6, 2021
@jimklimov jimklimov requested review from aquette and clepple November 6, 2021 20:55
@jimklimov jimklimov restored the fix-makefile-cleanup branch December 3, 2021 14:20
@jimklimov jimklimov deleted the fix-makefile-cleanup branch December 3, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant