Changed the section of the documentation packages to non-free/doc
[sven/java-package.git] / Makefile
1 DESTDIR=
2
3 .PHONY: default
4 default: build
5
6 .PHONY: build
7 build:
8         echo "java-package currently supports the following binary packages:" > SUPPORTED
9         echo >> SUPPORTED
10         echo "(This list is automatically generated, do not edit)" >> SUPPORTED
11         echo >> SUPPORTED
12         grep -h "SUPPORTED$$" $(wildcard lib/*-*.sh) | sed 's/"//g;s/).*//' >> SUPPORTED
13
14 .PHONY: clean
15 clean:
16         rm -f SUPPORTED
17
18 .PHONY: install
19 install:
20         install -d -m 755 $(DESTDIR)/usr/bin
21         install -m 755 make-jpkg.out $(DESTDIR)/usr/bin/make-jpkg
22         install -d -m 755 $(DESTDIR)/usr/share/man/man1
23         install -m 644 make-jpkg.1 $(DESTDIR)/usr/share/man/man1/
24         install -d -m 755 $(DESTDIR)/usr/share/java-package
25         for file in lib/*.sh; do \
26             install -m 644 $$file $(DESTDIR)/usr/share/java-package/ ; \
27         done