From: Carl Worth Date: Wed, 4 Sep 2013 23:55:35 +0000 (-0700) Subject: Add a "make install" target for glenv X-Git-Url: https://git.cworth.org/git?p=glenv;a=commitdiff_plain;h=72555f13b54812df1f376ebac88900a1be2f896e Add a "make install" target for glenv Simply copy the glenv binary and the libglenv.so library to ${PREFIX}/bin and ${PREFIX}/lib respectively. --- 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)