unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
82 stars 12 forks source link

Add support for DESTDIR in Makefile #69

Closed drmpjz closed 2 years ago

drmpjz commented 2 years ago

In the last step of building an RPM, the resulting files of a project are installed into a temporary buildroot from where the rpmbuild utility collects them for packaging into the RPM archive.

This is commonly supported in Makefiles using the DESTDIR variable, but this is missing in xnedit. If DESTDIR is not set, there is no change in the behaviour of the make file.

The following patch implements the requested change. --- Makefile.orig 2021-12-28 17:09:32.171693956 +0100 +++ Makefile 2021-12-28 17:09:11.227741948 +0100 @@ -57,15 +57,15 @@ # INSTALL_FILES=source/xnedit source/xnc install: $(INSTALL_FILES)

P.S. You've heard it before, but I am one of the long time users too, and very happy that xnedit is under active delvelopment again :-)

unixwork commented 2 years ago

Hi and thanks for your input. I have applied your changes and make install now supports DESTDIR.