-
Notifications
You must be signed in to change notification settings - Fork 14
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 support for DESTDIR variable #14
Conversation
This allows (among others) packagers to install the files in a temporary folder to generate a RPM or DEB file. The DESTDIR variable is a well established convention for this. This commit also adds the possibility to override the installation PREFIX, BIN_DIR and DATA_DIR (as some distros would prefer /usr/games for the binary and /usr/share/games/tbftss for the data).
I had to revert this, as when I ran make install on my system, it broke (directories were incorrectly created, and the copy failed). I then had to manually delete the erroneous structure. This line: install -d $(INST_ICON_DIR)/{16x16,32x32,64x64,128x128}/apps literally created a directory called: {16x16,32x32,64x64,128x128} Other parts of the installation also failed, as my system (Mint) does not appear to make much use of /usr/local |
That's weird... What shell does not support the
What other parts of the installation failed? |
Or maybe |
I tested again locally, with Mageia 6 using BASH as shell interpreter, and it works just fine, after the install I get, using those instructions:
If the only problematic line is
Or even a |
And here's what I get as the output of my RPM, using those build instructions:
And the package works fine. |
Okay, cool. It might be worth me having this as a separate makefile, as the layout is quite different from my Mint install; the locations go against what is configured for me system - I have nothing in /usr/games or /usr/local/share. If you were to call it makefile.packaging (or something like that) that would be the best bet. I can easily maintain them both. |
Well you can also set the default values that you like best. All values are defined with The current default values are
and it would behave just like it used to. Also I'd split the problematic So basically it would all behave like it used to, but would be more flexible so that packagers can do what they need without having to patch the makefile. |
Could you try this branch and see if it behaves properly for you? https://github.com/akien-mga/tbftss/tree/pr-packaging |
…gurable install paths: #14
Excellent. Just save it a go and it all works fine. Thanks for the updating it. |
(this has been committed to the develop branch, not master right now) |
Awesome, thanks :) |
This allows (among others) packagers to install the files in a temporary
folder to generate a RPM or DEB file. The
DESTDIR
variable is a wellestablished convention for this.
This commit also adds the possibility to override the installation
PREFIX
,BIN_DIR
andDATA_DIR
(as some distros would prefer/usr/games
for the binaryand
/usr/share/games/tbftss
for the data).This commit also makes the default
DATA_DIR
/usr/local/share/tbftss
, if you prefer to keep/opt/tbftss
for this purpose I could change it back.