File: Makefile.in

package info (click to toggle)
ocamlwc 0.3-15
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 176 kB
  • sloc: makefile: 84; ml: 55; sh: 3
file content (49 lines) | stat: -rw-r--r-- 975 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

# where to install
PREFIX = @prefix@
BINDIR = $(PREFIX)/bin

all: ocamlwc

ocamlwc: ocamlwc.ml
	@OCAMLC@ -o $@ $^

ocamlwc.static: ocamlwc.ml
	@OCAMLOPT@ -cclib -static -o $@ $^

doc: ocamlwc.dvi

ocamlwc.dvi: ocamlwc.mll
	ocamlweb -s --no-index -o ocamlwc.tex ocamlwc.mll
	latex ocamlwc && latex ocamlwc

ocamlwc.ps: ocamlwc.dvi
	dvips ocamlwc.dvi -o ocamlwc.ps

local:: ocamlwc.static
	cp ocamlwc.static $$HOME/bin/$$OSTYPE/ocamlwc

install:: ocamlwc
	cp ocamlwc $(BINDIR)

ocamlwc.ml: ocamlwc.mll
	@OCAMLLEX@ ocamlwc.mll

FTP=$$HOME/WWW/ftp/ocaml/misc
VERSION=0.3
NAME=ocamlwc-$(VERSION)

export:: ocamlwc.ps
	cp GPL README ocamlwc.mll $(FTP)
	gzip --best -c ocamlwc.ps > $(FTP)/ocamlwc.ps.gz
	mkdir -p export/$(NAME)
	cp GPL README configure Makefile.in ocamlwc.mll export/$(NAME)
	cd export; tar zcf $(NAME).tar.gz $(NAME)
	cd export; cp $(NAME).tar.gz $(FTP)

clean::
	rm -f ocamlwc ocamlwc.ml ocamlwc.tex
	rm -f *~ *.cm[iox] *.o
	rm -f *.log *.aux *.dvi ocamlwc.ps