Makefile (390B)
1 VERSION = 0.0.1 2 DESTDIR := /usr/local 3 export DESTDIR 4 export VERSION 5 6 all: 7 $(MAKE) -C src all 8 9 shared: 10 $(MAKE) -C src shared 11 src: 12 $(MAKE) -C src 13 14 test: src 15 $(MAKE) -C src test 16 17 clean: 18 $(MAKE) -C src clean 19 20 archive: 21 git archive --format=tar.gz HEAD > liblash-$(VERSION).tar.gz 22 23 install: 24 mkdir -vp $(DESTDIR)/lib 25 mkdir -vp $(DESTDIR)/include 26 $(MAKE) -e -C src install 27 28 .PHONY: clean