Makefile.am 2.32 KB
Newer Older
1
# $Id$ $Revision$
2 3 4 5
## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS = -I m4

6
export TAR_OPTIONS = --owner=0 --group=0 --exclude=windows/dependencies/*/*
John Ellson's avatar
John Ellson committed
7

8 9 10
txtdir = $(pkgdatadir)/doc
htmldir = $(pkgdatadir)/doc/html

11 12
txt = AUTHORS COPYING ChangeLog NEWS cpl1.0.txt
html =
13 14 15 16

txt_DATA = $(txt)
html_DATA = $(html)

17
pkginclude_HEADERS = $(top_builddir)/graphviz_version.h
18

19 20
man_MANS = graphviz.7

21
# $(subdirs) contains the list from: AC_CONFIG_SUBDIRS
Erwin Janssen's avatar
Erwin Janssen committed
22
SUBDIRS = $(subdirs) lib plugin cmd tclpkg doc contrib share graphs rtest tests
23

24
.PHONY: doxygen
25 26 27 28
doxygen:
	doxygen

dist-hook:
29
#	find $(distdir) -name CVS -type d -prune -exec rm -rf {} \;
30 31
#	rm -f ToPAS
#	find $(distdir) -type f -exec md5sum {} >>ToPAS \;
32

33
BUILT_SOURCES = $(top_builddir)/graphviz_version.h
34

35
$(top_builddir)/graphviz_version.h: config.h
36
	$(EGREP) 'PACKAGE|VERSION|GVPLUGIN' config.h > $(top_builddir)/graphviz_version.h
37

38
EXTRA_DIST = $(txt) $(html) graphviz.spec \
39
	autogen.sh config/depcomp config/config.rpath \
40
	builddate.h compat.h \
41
	Makeargs iffe config.iffe \
42
	m4/README m4/iconv.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 \
Erwin Janssen's avatar
Erwin Janssen committed
43
	graphviz.7 Doxyfile.in Doxyfile awk \
44
	config/config_perl.pl config/config_python.py \
45
	config/config_ruby.rb config/config_tcl.tcl dot.demo  plugin.demo \
46
	macosx windows debian redhat graphviz.sln
47

48 49
.PHONY: rpm
rpm: dist
John Ellson's avatar
John Ellson committed
50 51
	mkdir -p $(HOME)/rpmbuild/$(HOSTNAME)/SPECS $(HOME)/rpmbuild/$(HOSTNAME)/SOURCES
	cp graphviz-@VERSION@.tar.gz $(HOME)/rpmbuild/$(HOSTNAME)/SOURCES
John Ellson's avatar
John Ellson committed
52 53 54 55 56
	case `cut -d' ' -f1 /etc/system-release` in \
	Fedora) cp redhat/graphviz.spec.fedora $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
	CentOS) cp redhat/graphviz.spec.rhel $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
	Red) cp redhat/graphviz.spec.rhel $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
	esac
John Ellson's avatar
John Ellson committed
57 58
	rpmbuild -ba $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec
#	rpmbuild -ta graphviz-@VERSION@.tar.gz
59
#	rpmbuild -ta --define "rtest 1" graphviz-@VERSION@.tar.gz
60
	
61 62
.PHONY: deb
deb: dist
63 64 65
	rm -rf graphviz-@VERSION@
	zcat graphviz-@VERSION@.tar.gz | tar xf -
	(cd graphviz-@VERSION@; fakeroot make -f debian/rules binary)
66
	
67 68
.PHONY: pkg
pkg: dist
69
	tar xzf graphviz-@VERSION@.tar.gz && make -C graphviz-@VERSION@/macosx/build && mv graphviz-@VERSION@/macosx/build/graphviz-*.pkg .
70

71

72
DISTCLEANFILES = config.cache builddate.h FEATURE/* graphviz-@VERSION@*