diff options
author | Manuel Reimer <manuel.reimer@gmx.de> | 2018-04-07 11:40:46 +0200 |
---|---|---|
committer | Manuel Reimer <manuel.reimer@gmx.de> | 2018-04-07 11:40:46 +0200 |
commit | cebab6f35a4b3e343d1a85cad21919a3dc5122c8 (patch) | |
tree | d9b6f5f33507176a928e3e5823e29b1612617762 /glcdgraphics/Makefile | |
parent | 9a67086fa751ccbb4a0a6fe1e25127730c049b3e (diff) | |
download | graphlcd-base-cebab6f35a4b3e343d1a85cad21919a3dc5122c8.tar.gz graphlcd-base-cebab6f35a4b3e343d1a85cad21919a3dc5122c8.tar.bz2 |
Final Makefile fixes. Packaging should be much easier now
Diffstat (limited to 'glcdgraphics/Makefile')
-rw-r--r-- | glcdgraphics/Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/glcdgraphics/Makefile b/glcdgraphics/Makefile index 2d6e7ff..cba3a37 100644 --- a/glcdgraphics/Makefile +++ b/glcdgraphics/Makefile @@ -2,11 +2,11 @@ # Makefile for the GraphLCD graphics library # --include ../Make.config +include ../Make.config # External image lib to use: imagemagick, graphicsmagick, or none # (two ifdef/endif are used because older installations may not support 'else ifdef') -IMAGELIB = +IMAGELIB = ifdef HAVE_GRAPHICSMAGICK IMAGELIB = graphicsmagick endif @@ -73,18 +73,18 @@ $(LIBNAME): $(OBJS) ln -sf $(LIBNAME) $(BASENAME) install: all - install -d $(LIBDIR) - install -m 755 $(LIBNAME) $(LIBDIR)/ - install -d $(INCDIR)/glcdgraphics - install -m 644 $(HEADERS) $(INCDIR)/glcdgraphics/ - ( cd $(LIBDIR); ln -sf $(LIBNAME) $(BASENAME).$(VERMAJOR); ln -sf $(LIBNAME) $(BASENAME) ) + install -d $(DESTDIR)$(LIBDIR) + install -m 755 $(LIBNAME) $(DESTDIR)$(LIBDIR)/ + install -d $(DESTDIR)$(INCDIR)/glcdgraphics + install -m 644 $(HEADERS) $(DESTDIR)$(INCDIR)/glcdgraphics/ + ( cd $(DESTDIR)$(LIBDIR); ln -sf $(LIBNAME) $(BASENAME).$(VERMAJOR); ln -sf $(LIBNAME) $(BASENAME) ) uninstall: - rm -f $(LIBDIR)/$(BASENAME) - rm -f $(LIBDIR)/$(BASENAME).$(VERMAJOR) - rm -f $(LIBDIR)/$(LIBNAME) - (for i in $(HEADERS); do rm -f $(INCDIR)/glcdgraphics/$$i; done) - rmdir $(INCDIR)/glcdgraphics + rm -f $(DESTDIR)$(LIBDIR)/$(BASENAME) + rm -f $(DESTDIR)$(LIBDIR)/$(BASENAME).$(VERMAJOR) + rm -f $(DESTDIR)$(LIBDIR)/$(LIBNAME) + (for i in $(HEADERS); do rm -f $(DESTDIR)$(INCDIR)/glcdgraphics/$$i; done) + rmdir $(DESTDIR)$(INCDIR)/glcdgraphics clean: rm -f $(OBJS) $(DEPFILE) $(LIBNAME) $(BASENAME) *~ |