From 72555f13b54812df1f376ebac88900a1be2f896e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 4 Sep 2013 16:55:35 -0700 Subject: [PATCH] Add a "make install" target for glenv Simply copy the glenv binary and the libglenv.so library to ${PREFIX}/bin and ${PREFIX}/lib respectively. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 50e2194..d03d78d 100644 --- a/Makefile +++ b/Makefile @@ -33,5 +33,12 @@ glenv: glenv.c libglenv.so: glwrap.c $(CC) $(GLENV_CFLAGS) $(GLENV_LDFLAGS) -fPIC -shared -Wl,-Bsymbolic -o $@ $< +.PHONY: install +install: all + mkdir -p $(DESTDIR)$(BINDIR) + install -m07555 glenv $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(LIBDIR) + install -m0644 libglenv.so $(DESTDIR)$(LIBDIR) + clean: rm -f $(TARGETS) -- 2.43.0