File: Makefile

package info (click to toggle)
datapacker 1.0.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 128 kB
  • sloc: haskell: 228; makefile: 78
file content (55 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (5)
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
47
48
49
50
51
52
53
54
55
# Copyright (c) 2004-2008 John Goerzen
#

all: setup			# GHC build
	./setup configure
	./setup build

hugsbuild: setup
	./setup configure --hugs
	./setup build

setup: Setup.lhs datapacker.cabal
	ghc -package Cabal Setup.lhs -o setup

doc: man html pdf txt

.PHONY: man
man: datapacker.1

.PHONY: html
html: datapacker.html

.PHONY: pdf
pdf: datapacker.pdf

.PHONY: txt
txt: datapacker.txt

datapacker.html: datapacker.sgml
	docbook2html -u datapacker.sgml

datapacker.ps: datapacker.1
	man -t -l datapacker.1 > datapacker.ps

datapacker.pdf: datapacker.ps
	ps2pdf14 datapacker.ps

datapacker.txt: datapacker.1
	groff -Tascii -man datapacker.1 | sed $$'s/.\b//g' > datapacker.txt

datapacker.1: datapacker.sgml
	docbook2man datapacker.sgml
	docbook2man datapacker.sgml

clean: clean-code clean-doc

clean-code:
	-./setup clean
	-cd libsrc && ../setup clean
	-rm -rf dist libsrc/dist *.ho *.hi *.o *.a setup *~
	-rm -f `find . -name "*~"` `find . -name "*.o"`
	-rm -f `find . -name "*.cm*"`

clean-doc:
	-rm -f *.1 *.ps *.pdf *.txt *.links *.refs *.html