3c017a6e5e08d142b7239576a266bbeed88cfdad
[sgt/utils] / base64 / Makefile
1 DESTDIR = .
2
3 all: base64.1 base64
4
5 base64: base64.c
6 $(CC) $(CFLAGS) -o $@ $<
7
8 %.1: %.but
9 halibut --man=$@ $<
10
11 clean:
12 rm -f *.1 base64 *.html *.tar.gz
13
14 html:
15 halibut --html=$(DESTDIR)/base64.html base64.but
16
17 release: base64.1
18 mkdir -p reltmp/base64
19 ln -s ../../base64.c reltmp/base64
20 ln -s ../../base64.1 reltmp/base64
21 ln -s ../../base64.but reltmp/base64
22 ln -s ../../Makefile reltmp/base64
23 tar -C reltmp -chzvf $(DESTDIR)/base64.tar.gz base64
24 rm -rf reltmp