-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
86 lines (65 loc) · 1.78 KB
/
Makefile.in
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# $Id: Makefile.in,v 1.2 2008/11/17 16:53:36 rwmj Exp $
PACKAGE = ocaml-curses
VERSION = 1.0.3
CURSES = ncurses
CLIBS = @CURSES_LIB_BASE@
DEFS = @DEFS@
RESULT = curses
SOURCES = ml_curses.c keys.ml curses.mli curses.ml
CC = @CC@
CFLAGS = -g -Wall $(DEFS)
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
OCAMLDOCFLAGS = -stars
all: byte
opt: ncl META
$(RANLIB) *.a
byte: bcl META
$(RANLIB) *.a
install: byte libinstall
uninstall: libuninstall
test: test.ml byte
$(OCAMLC) -I . -o $@ curses.cma $<
test.opt: test.ml opt
$(OCAMLOPT) -I . -o $@ curses.cmxa $<
META: META.in
sed \
-e 's/@PACKAGE@/curses/' \
-e 's/@VERSION@/$(VERSION)/' \
-e 's/@CURSES@/$(CURSES)/' \
< $< > $@
doc: htdoc
distclean: clean
rm -rf doc/curses
rm -rf autom4te.cache
rm -f config.log config.status Makefile config.ml
# Distribution.
dist:
$(MAKE) check-manifest
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
ls -l $(PACKAGE)-$(VERSION).tar.gz
check-manifest:
@for d in `find -type d -name CVS | grep -v '^\./debian/'`; \
do \
b=`dirname $$d`/; \
awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \
sed -e "s|^|$$b|" -e "s|^\./||"; \
done | grep -v \.cvsignore | sort > .check-manifest; \
sort MANIFEST > .orig-manifest; \
diff -u .orig-manifest .check-manifest; rv=$$?; \
rm -f .orig-manifest .check-manifest; \
exit $$r
# Upload to Savannah.
USER = $(shell whoami)
upload:
rm -f $(PACKAGE)-$(VERSION).tar.gz.sig
gpg -b $(PACKAGE)-$(VERSION).tar.gz
scp $(PACKAGE)-$(VERSION).tar.gz{,.sig} \
$(USER)@dl.sv.nongnu.org:/releases/ocaml-tmk
include OCamlMakefile
.PHONY: doc