Initial rework of (svn) java-package 0.42
[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:" \
9                 > SUPPORTED
10         echo >> SUPPORTED
11         echo "(This list is automatically generated, do not edit)" >> SUPPORTED
12         echo >> SUPPORTED
13         grep -h "SUPPORTED$$" $(wildcard lib/*-*.sh) | sed 's/"//g;s/).*//' \
14                 >> SUPPORTED
15
16 .PHONY: clean
17 clean:
18         rm -f SUPPORTED
19
20 .PHONY: install
21 install:
22         install -d -m 755 $(DESTDIR)/usr/bin
23         install -m 755 make-jpkg.out $(DESTDIR)/usr/bin/make-jpkg
24         install -d -m 755 $(DESTDIR)/usr/share/man/man1
25         install -m 644 make-jpkg.1 $(DESTDIR)/usr/share/man/man1/
26         install -d -m 755 $(DESTDIR)/usr/share/java-package
27         for file in lib/*.sh; do \
28             install -m 644 $$file $(DESTDIR)/usr/share/java-package/ ; \
29         done