aboutsummaryrefslogtreecommitdiff
path: root/Makefile (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: support DESTDIRphoebos2022-07-211-41/+41
|
* Makefile: use a Github mirror of Plan 9 TroffAli Gholami Rudi2022-06-031-1/+1
|
* Makefile: remember $PWD even running under sudophoebos2022-04-111-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 changephoebos2022-04-111-1/+1
|
* Makefile: replace git with httpsKonstantin81052022-03-231-6/+6
|
* Makefile: install the manual pagesmtbakerguy2021-04-161-0/+6
|
* Makefile: change the permission of files in tmac/ recursivelyAli Gholami Rudi2021-02-121-1/+1
| | | | Reported by Meino <tuxic@posteo.de>.
* Makefile: fix handling paths containing spaces for installing tmac/*Ali Gholami Rudi2021-02-121-1/+1
| | | | Reported by Meino <tuxic@posteo.de>.
* Makefile: fix changing the permission of tmac/*Ali Gholami Rudi2021-02-121-1/+1
| | | | Reported by Meino <tuxic@posteo.de>.
* Makefile: handle paths containing spacesAli Gholami Rudi2021-02-091-31/+31
|
* Makefile: fix tmac/me directory permissionsDirk-Wilhelm Peters2020-10-041-2/+3
|
* Makefile: BASE instead of PREFIXAli Gholami Rudi2020-10-041-5/+9
|
* Makefile: clone the neat branch of troffAli Gholami Rudi2020-10-041-1/+1
|
* Makefile: fix devutf pathAli Gholami Rudi2020-09-211-2/+2
| | | | Fixed by a-vrma in Github.
* Makefile: install targetAli Gholami Rudi2020-09-201-12/+51
|
* soin: include soin and shapeAli Gholami Rudi2018-02-221-7/+5
|
* Makefile: text direction support has been mergedAli Gholami Rudi2017-11-231-1/+0
|
* Makefile: no need to print the fonts directory in neat targetAli Gholami Rudi2016-12-221-1/+0
|
* Makefile: using neatroff without installing itAli Gholami Rudi2016-12-181-9/+20
|
* fonts: fonts.sh to retrieve GS and CM fontsAli Gholami Rudi2016-12-041-8/+1
|
* Makefile: standalone setupAli Gholami Rudi2016-12-041-0/+67
This branch assumes that the compiled programs, macro packages, and font descriptions will not be installed and used without moving.