File: Makefile

package info (click to toggle)
hare-update 0.26.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,044 kB
  • sloc: makefile: 37; sh: 14
file content (46 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.POSIX:
.SUFFIXES:
HARE=hare
HAREFLAGS=

DESTDIR=
PREFIX=/usr/local
LIBEXECDIR=$(PREFIX)/libexec

HARE_SOURCES != find . -name '*.ha' | grep -v '^./versions/.*/v.*\.ha'

all: hare-update hare-update-genrules

VERSIONS=\
	 versions/v0_25_2/v0.25.2.ha \
	 versions/v0_26_0/v0.26.0.ha \
	 versions/vNEXT/v0.next.ha

versions/v0_25_2/v0.25.2.ha: versions/v0_25_2/v0.25.2.ha.in hare-update-genrules
	./hare-update-genrules < $< > $@

versions/v0_26_0/v0.26.0.ha: versions/v0_26_0/v0.26.0.ha.in hare-update-genrules
	./hare-update-genrules < $< > $@

versions/vNEXT/v0.next.ha: versions/vNEXT/v0.next.ha.in hare-update-genrules
	./hare-update-genrules < $< > $@

hare-update: $(HARE_SOURCES) $(VERSIONS)
	$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/

hare-update-genrules: $(HARE_SOURCES)
	$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/

check:
	$(HARE) test $(HAREFLAGS)

clean:
	rm -f hare-update

install:
	install -Dm755 hare-update $(DESTDIR)$(LIBEXECDIR)/hare/hare-update

uninstall:
	rm -f $(DESTDIR)$(LIBEXECDIR)/hare/hare-update

.PHONY: all check clean install uninstall