X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=e0afbfc7ccb1032208e3150388d8ab33490f2520;hp=0000000000000000000000000000000000000000;hb=ca8b5d176518ea838461b92229d2fbebb3731de8;hpb=5bc639af80c6222872b24d8950ac8ee53655870a diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e0afbfc --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +DESTDIR= + +.PHONY: default +default: build + +.PHONY: build +build: + echo "java-package currently supports the following binary packages:" \ + > SUPPORTED + echo >> SUPPORTED + echo "(This list is automatically generated, do not edit)" >> SUPPORTED + echo >> SUPPORTED + grep -h "SUPPORTED$$" $(wildcard lib/*-*.sh) | sed 's/"//g;s/).*//' \ + >> SUPPORTED + +.PHONY: clean +clean: + rm -f SUPPORTED + +.PHONY: install +install: + install -d -m 755 $(DESTDIR)/usr/bin + install -m 755 make-jpkg.out $(DESTDIR)/usr/bin/make-jpkg + install -d -m 755 $(DESTDIR)/usr/share/man/man1 + install -m 644 make-jpkg.1 $(DESTDIR)/usr/share/man/man1/ + install -d -m 755 $(DESTDIR)/usr/share/java-package + for file in lib/*.sh; do \ + install -m 644 $$file $(DESTDIR)/usr/share/java-package/ ; \ + done