Guilt v0.35
[guilt/mob.git] / Makefile
blobb38c1e44085bd78981e9922874e8c91afb5280ab
1 PREFIX?=/usr/local
2 DESTDIR?=
3 INSTALL?=install
5 OSFILES = $(filter-out $(wildcard *~),$(wildcard os.*))
6 SCRIPTS = $(filter-out $(wildcard *~),$(wildcard guilt-*))
8 .PHONY: all
9 all:
10 @echo "Nothing to build, it is all bash :)"
11 @echo "Try make install"
13 .PHONY: install
14 install:
15 $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
16 $(INSTALL) -m 755 guilt $(DESTDIR)$(PREFIX)/bin/
17 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/guilt/
18 $(INSTALL) -m 755 $(SCRIPTS) $(DESTDIR)$(PREFIX)/lib/guilt/
19 $(INSTALL) -m 644 $(OSFILES) $(DESTDIR)$(PREFIX)/lib/guilt/
21 .PHONY: uninstall
22 uninstall:
23 ./uninstall $(DESTDIR)$(PREFIX)/bin/ $(SCRIPTS)
25 .PHONY: doc
26 doc:
27 $(MAKE) -C Documentation all
29 .PHONY: install-doc
30 install-doc:
31 $(MAKE) -C Documentation install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) INSTALL=$(INSTALL)
33 .PHONY: test
34 test:
35 make -C regression all
37 .PHONY: clean
38 clean:
39 $(MAKE) -C Documentation clean