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

Add a GNUMakefile for immediate make targets #50

Merged
merged 2 commits into from
Jan 6, 2017
Merged

Conversation

ingydotnet
Copy link
Member

Before this, to use Makefile targets, you needed to run ./bootstrap and
./configure first. This file will proxy all common Makefile targets, first
making sure that the Makefile exists.

It also has development task targets that do not need any bootstrapping at all.

@ingydotnet
Copy link
Member Author

@sigmavirus24 you seem to have fallen off IRC, but I saw your comment and
reconfigured this PR.

I renamed it to the non-special altermate Makefile name .makefile with the
purpose of putting all sorts of development tasks in there. Then I realized
that I could get out of needing -f .makefile everytime by personally/locally
copying .makefile to GNUMakefile. SO now it's only indirection for people
who want to use it. Once you start using it, you really like it; but not we
don't add indirection to automated tests etc.

I added GNUMakefile to the .gitignore and made its distclean not remove
GNUMakefile. So it works really well when you decided to use it.

We can add various development activities to this alternate Makefile.

If you do this first:
```
ln {.,GNU}makefile
```

then you can use the new targets and the old ones without specifying the
`.makefile` in make commands and without worrying about bootstrap.

ie Before this, to use Makefile targets, you needed to run `./bootstrap`
and `./configure` first. This file will proxy all common Makefile
targets, first making sure that the Makefile exists.
install \
test \
test-all \
test-suite \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include distclean & distclean-local here?

I can include them on merge if you want.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean to proxy? I added my own .makefile distclean rule (line 60) because the Makefile distclean doesn't work.

So, no, I wouldn't proxy that rule until we fix it.

@sigmavirus24 sigmavirus24 merged commit ed44fa2 into master Jan 6, 2017
@ingydotnet ingydotnet deleted the gnumakefile branch February 9, 2017 16: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.

None yet

2 participants