Skip to content

Commit

Permalink
libimagequant added as a git submodule (sorry!)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Nov 4, 2016
1 parent 17f587b commit dc4ece8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib"]
path = lib
url = https://github.com/ImageOptim/libimagequant.git
6 changes: 5 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
To build pngquant from source on Mac OS X and most Linux distributions,
To get the code:

$ git clone --recursive https://github.com/pornel/pngquant.git

To build pngquant from source on macOS and most Linux distributions,
simply run:

$ make
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ TESTBIN = test/test

all: $(BIN)

staticlib:
staticlib: lib/libimagequant.h
$(MAKE) -C lib static

$(STATICLIB): config.mk staticlib

sharedlib:
sharedlib: lib/libimagequant.h
$(MAKE) -C lib shared

$(SHAREDLIB): config.mk sharedlib
Expand Down Expand Up @@ -86,10 +86,13 @@ distclean: clean
$(MAKE) -C lib distclean
rm -f config.mk pngquant-*-src.tar.gz

config.mk:
config.mk: lib/libimagequant.h
ifeq ($(filter %clean %distclean, $(MAKECMDGOALS)), )
./configure
endif

lib/libimagequant.h:
git submodule init && git submodule update

.PHONY: all clean dist distclean dll install uninstall test staticlib
.DELETE_ON_ERROR:
1 change: 1 addition & 0 deletions lib
Submodule lib added at e5f45c

0 comments on commit dc4ece8

Please sign in to comment.