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

Makefile fixes #56

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Makefile fixes #56

wants to merge 2 commits into from

Conversation

hackerb9
Copy link

@hackerb9 hackerb9 commented Sep 5, 2021

Use the variables DESTDIR and prefix in the standard way. Also, recommend that people try glyphbuilder.sh instead of telling people to edit the makefile to change how glyph.h is built.

Previously, the makefile was using those standard variables in an
idiosyncratic way. Normally, one should be able to do something like
this:

    make prefix=/opt/uobikiemukot install

Such things didn't work with this makefile.

According the GNU Make documentation, a makefile should never set
DESTDIR. Only the person doing the install should set it.

The prefix variable should be lowercase and default to $(DESTDIR)/usr/local.

The mandir variable is also lowercase and should not be rooted from
DESTDIR. The Make documentation says it should be based on
datarootdir, but that's just $(prefix)/share, so I cut out the
middleman. (I've never seen anyone set datarootdir by hand, but people
set prefix often.)
Previously it had suggested that people edit the makefile to run
mkfont_bdf, but that may be less convenient.
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