X-Git-Url: https://git.cworth.org/git?p=glenv;a=blobdiff_plain;f=Makefile;fp=Makefile;h=d03d78d485df2ad4ec68447e17b07dff0fda5aff;hp=50e21941ee7e0153a3f1e810835299ccc91ac6bd;hb=72555f13b54812df1f376ebac88900a1be2f896e;hpb=455de90fada991ed423c5cd4f20269fc63653d90 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)