File: Makefile

package info (click to toggle)
ocaml-shout 0.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 612 kB
  • sloc: ansic: 410; ml: 206; makefile: 93; sh: 4
file content (49 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (3)
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
# Copyright 2003-2006 by the Savonet team
#
# $Id: Makefile 4694 2007-10-23 23:33:11Z smimram $

PROGNAME = ocaml-shout
DISTFILES = bootstrap CHANGES configure configure.ac COPYING \
            Makefile README aclocal.m4 \
            src/OCamlMakefile src/Makefile.in \
            src/META.in src/*.ml src/*.mli src/*.c src/*.h \
            examples/configure* examples/*Makefile* examples/*.ml \
            doc/html

all:
	$(MAKE) -C src

opt:
	$(MAKE) -C src opt

doc:
	$(MAKE) -C src htdoc
	mkdir -p doc
	rm -rf doc/html
	mv src/doc/shout/html doc
	rm -rf src/doc

clean:
	-$(MAKE) -C src clean
	-$(MAKE) -C examples clean

distclean: clean
	rm -rf autom4te.cache config.log config.status src/META src/Makefile
	rm -rf doc
	$(MAKE) -C examples distclean

install:
	$(MAKE) -C src libinstall

uninstall:
	$(MAKE) -C src libuninstall

dist: doc
	VERSION="$(shell grep 'AC_INIT' configure.ac)"; \
		VERSION=`echo "$$VERSION" | sed -e 's/AC_INIT([^,]*, \([^,]*\), .*)/\1/'`; \
		mkdir $(PROGNAME)-$$VERSION; \
		cp -r --parents $(DISTFILES) $(PROGNAME)-$$VERSION; \
		tar zcvf $(PROGNAME)-$$VERSION.tar.gz $(PROGNAME)-$$VERSION; \
		rm -rf $(PROGNAME)-$$VERSION

.PHONY: all opt doc clean distclean install uninstall dist