File: Makefile

package info (click to toggle)
hare-update 0.25.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: makefile: 31; sh: 14
file content (38 lines) | stat: -rw-r--r-- 775 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
.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_25_2/v0.25.2.ha: versions/v0_25_2/v0.25.2.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