Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Support DESTDIR in the Makefile #122

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ clean:
rm -f serpent *\.o libserpent.a libserpent.so

install:
cp serpent /usr/local/bin
cp libserpent.a /usr/local/lib
cp libserpent.so /usr/local/lib
rm -rf /usr/local/include/libserpent
mkdir -p /usr/local/include/libserpent
cp $(HEADERS) /usr/local/include/libserpent
cp serpent $(DESTDIR)/usr/local/bin
cp libserpent.a $(DESTDIR)/usr/local/lib
cp libserpent.so $(DESTDIR)/usr/local/lib
rm -rf $(DESTDIR)/usr/local/include/libserpent
mkdir -p $(DESTDIR)/usr/local/include/libserpent
cp $(HEADERS) $(DESTDIR)/usr/local/include/libserpent