Add DESTDIR variable to FLiT's Makefile #292
Labels
enhancement
good first issue
A good place to start
make
Involves touching GNU Makefiles
tests
Involves touching tests
Feature Request
Describe the new feature:
When installing, apparently the
PREFIX
variable within theMakefile
is not sufficient for some things. Specifically, I was looking at creating deb packages for Debian-based systems.We would add another
DESTDIR
variable that would be before thePREFIX
variable. The difference between them is that from the files that are installed, theDESTDIR
should be the location of the root directory (i.e.,/
). Even absolute paths should be relative toDESTDIR
.Suggested change:
Rework the top-level
Makefile
to useDESTDIR
, and add some tests to test its functionality.Alternative approaches:
Don't use any absolute paths at all and only do relative paths. That way, we can simply prepend
DESTDIR
in front ofPREFIX
and no other work is necessary.The text was updated successfully, but these errors were encountered: