Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

install/uninstall targets in Makefile #228

Closed
wants to merge 6 commits into from
Closed

Conversation

Umorrian
Copy link
Contributor

For easier installation as shared library.

Umorrian added 4 commits March 7, 2015 20:33
Added install, install-strip and uninstall targets, also made DESTDIR useable.
@@ -42,6 +42,10 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC

LDFLAGS_LIB = $(LDFLAGS) -shared

PREFIX = $(DESTDIR)/usr/local

This comment was marked as off-topic.

@indutny
Copy link
Member

indutny commented Mar 12, 2015

LGTM, but I bet @bnoordhuis might have something to say. I'm totally dumb in file structure of library installations on unixes.

@@ -105,6 +109,21 @@ parsertrace_g: http_parser_g.o contrib/parsertrace.c
tags: http_parser.c http_parser.h test.c
ctags $^

install: library
install -D $(SONAME) $(LIBDIR)/$(SONAME)

This comment was marked as off-topic.

@bnoordhuis
Copy link
Member

LGTM with suggestions.

@Umorrian
Copy link
Contributor Author

Implemented @bnoordhuis suggestions. I otherwise never write actual Makefiles, just got annoyed doing the installation manually.

@bnoordhuis
Copy link
Member

LGTM

indutny pushed a commit that referenced this pull request Mar 16, 2015
Add install, install-strip and uninstall targets, make DESTDIR usable.

PR-URL: #228
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@indutny
Copy link
Member

indutny commented Mar 16, 2015

Landed in 5d414fc, thank you!

@indutny indutny closed this Mar 16, 2015
KjellSchubert pushed a commit to KjellSchubert/http-parser that referenced this pull request Apr 18, 2015
Add install, install-strip and uninstall targets, make DESTDIR usable.

PR-URL: nodejs#228
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
eli-schwartz

This comment was marked as off-topic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants