Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Makefile: remember $PWD even running under sudo | phoebos | 2022-04-11 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sudo, doas, and other privilege-elevation tools do not preserve the value of the environment PWD. GNU make does not set $(PWD) itself, but gets the value from the environment. Therefore, when running "sudo make install" with GNU make, $(PWD) evaluates to nothing, which causes problems in the sed call for the install target. Each rule in the Makefile is interpreted by a shell, and new shells must set the PWD environ variable (the working dir is inherited from wherever make was called from). Therefore, we set $(PWD) so that it evaluates to ${PWD}, which will be dereferenced correctly by the shell. However, with this new value of $(PWD), any rules which change directory will have their new directory as PWD, and not the original directory where make was called from. Therefore, for these rules, set a local variable with the evaluation of ${PWD} before changing directory, and then use that variable. This fix is also made to the comp rules which use $(BASE) after changing directory, in case the user has left the default of BASE = $(PWD). These workarounds are done so that this Makefile is portable; it has been tested with both BSD make and GNU make, and it remains POSIX.1-2017 compliant. While both BSD and GNU make do set a special variable with the value of the current working directory - $(.CURDIR) and $(CURDIR), respectively - these are not compatible. The unportable extension we would need to simplify this would be PWD ?= $${PWD} so that PWD is only reset if it's not set already - in our case, only when running under sudo etc. We would also want some immediate-expansion macros. However, those methods are not portable, but this patch is. | ||||
* | Makefile: correct installed fontpath change | phoebos | 2022-04-11 | 1 | -1/+1 |
| | |||||
* | Makefile: replace git with https | Konstantin8105 | 2022-03-23 | 1 | -6/+6 |
| | |||||
* | Makefile: install the manual pages | mtbakerguy | 2021-04-16 | 1 | -0/+6 |
| | |||||
* | Makefile: change the permission of files in tmac/ recursively | Ali Gholami Rudi | 2021-02-12 | 1 | -1/+1 |
| | | | | Reported by Meino <tuxic@posteo.de>. | ||||
* | Makefile: fix handling paths containing spaces for installing tmac/* | Ali Gholami Rudi | 2021-02-12 | 1 | -1/+1 |
| | | | | Reported by Meino <tuxic@posteo.de>. | ||||
* | Makefile: fix changing the permission of tmac/* | Ali Gholami Rudi | 2021-02-12 | 1 | -1/+1 |
| | | | | Reported by Meino <tuxic@posteo.de>. | ||||
* | Makefile: handle paths containing spaces | Ali Gholami Rudi | 2021-02-09 | 1 | -31/+31 |
| | |||||
* | Makefile: fix tmac/me directory permissions | Dirk-Wilhelm Peters | 2020-10-04 | 1 | -2/+3 |
| | |||||
* | Makefile: BASE instead of PREFIX | Ali Gholami Rudi | 2020-10-04 | 1 | -5/+9 |
| | |||||
* | Makefile: clone the neat branch of troff | Ali Gholami Rudi | 2020-10-04 | 1 | -1/+1 |
| | |||||
* | Makefile: fix devutf path | Ali Gholami Rudi | 2020-09-21 | 1 | -2/+2 |
| | | | | Fixed by a-vrma in Github. | ||||
* | Makefile: install target | Ali Gholami Rudi | 2020-09-20 | 1 | -12/+51 |
| | |||||
* | soin: include soin and shape | Ali Gholami Rudi | 2018-02-22 | 1 | -7/+5 |
| | |||||
* | Makefile: text direction support has been merged | Ali Gholami Rudi | 2017-11-23 | 1 | -1/+0 |
| | |||||
* | Makefile: no need to print the fonts directory in neat target | Ali Gholami Rudi | 2016-12-22 | 1 | -1/+0 |
| | |||||
* | Makefile: using neatroff without installing it | Ali Gholami Rudi | 2016-12-18 | 1 | -9/+20 |
| | |||||
* | fonts: fonts.sh to retrieve GS and CM fonts | Ali Gholami Rudi | 2016-12-04 | 1 | -8/+1 |
| | |||||
* | Makefile: standalone setup | Ali Gholami Rudi | 2016-12-04 | 1 | -0/+67 |
This branch assumes that the compiled programs, macro packages, and font descriptions will not be installed and used without moving. |