8a48d402 |
1 | DESTDIR = . |
2 | |
9acadc2b |
3 | all: base64.1 base64 |
4 | |
5 | base64: base64.c |
6 | $(CC) $(CFLAGS) -o $@ $< |
7 | |
8 | %.1: %.but |
9 | halibut --man=$@ $< |
10 | |
11 | clean: |
8a48d402 |
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 |
ef397e72 |
23 | tar -C reltmp -chzf $(DESTDIR)/base64.tar.gz base64 |
8a48d402 |
24 | rm -rf reltmp |