]> granicus.if.org Git - graphviz/blob - Makefile.am
Merge branch 'smattr/DEA0397C-9C4C-458C-BD45-236AD5A1CAAA' into 'master'
[graphviz] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 export TAR_OPTIONS = --owner=0 --group=0 --exclude=windows/dependencies/*/*
6
7 txtdir = $(pkgdatadir)/doc
8 htmldir = $(pkgdatadir)/doc/html
9
10 txt = AUTHORS COPYING CHANGELOG.md NEWS cpl1.0.txt
11 html =
12
13 txt_DATA = $(txt)
14 html_DATA = $(html)
15
16 pkginclude_HEADERS = $(top_builddir)/graphviz_version.h
17
18 man_MANS = graphviz.7
19
20 # $(subdirs) contains the list from: AC_CONFIG_SUBDIRS
21 SUBDIRS = $(subdirs) lib plugin cmd tclpkg doc contrib share graphs rtest tests
22
23 .PHONY: doxygen
24 doxygen:
25         doxygen
26
27 dist-hook:
28         echo "@VERSION@" >VERSION
29         echo "@GRAPHVIZ_VERSION_DATE@" >DATE
30         echo "@GRAPHVIZ_COLLECTION@" >COLLECTION
31 #       find $(distdir) -name CVS -type d -prune -exec rm -rf {} \;
32 #       rm -f ToPAS
33 #       find $(distdir) -type f -exec md5sum {} >>ToPAS \;
34
35 BUILT_SOURCES = $(top_builddir)/graphviz_version.h
36
37 $(top_builddir)/graphviz_version.h: config.h
38         printf '#pragma once\n' > $(top_builddir)/graphviz_version.h
39         $(EGREP) 'PACKAGE|VERSION|GVPLUGIN' config.h >> $(top_builddir)/graphviz_version.h
40
41 EXTRA_DIST = $(txt) $(html) graphviz.spec \
42         autogen.sh config/depcomp config/config.rpath \
43         builddate.h \
44         m4/README m4/iconv.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 \
45         graphviz.7 Doxyfile.in Doxyfile awk \
46         config/config_perl.pl config/config_python.py \
47         config/config_ruby.rb config/config_tcl.tcl dot.demo  plugin.demo \
48         macosx windows debian redhat graphviz.sln
49
50 .PHONY: rpm
51 rpm: dist
52         mkdir -p $(HOME)/rpmbuild/$(HOSTNAME)/SPECS $(HOME)/rpmbuild/$(HOSTNAME)/SOURCES
53         cp graphviz-@VERSION@.tar.gz $(HOME)/rpmbuild/$(HOSTNAME)/SOURCES/
54         case `cut -d' ' -f1 /etc/system-release` in \
55         Fedora) cp redhat/graphviz.spec.fedora $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
56         CentOS) cp redhat/graphviz.spec.rhel $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
57         Red) cp redhat/graphviz.spec.rhel $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec;; \
58         esac
59         rpmbuild -ba $(HOME)/rpmbuild/$(HOSTNAME)/SPECS/graphviz.spec
60 #       rpmbuild -ta graphviz-@VERSION@.tar.gz
61 #       rpmbuild -ta --define "rtest 1" graphviz-@VERSION@.tar.gz
62         
63 .PHONY: deb
64 deb: dist
65         rm -rf graphviz-@VERSION@
66         zcat graphviz-@VERSION@.tar.gz | tar xf -
67         (cd graphviz-@VERSION@; fakeroot make -f debian/rules binary)
68         
69 .PHONY: pkg
70 pkg: dist
71         tar xzf graphviz-@VERSION@.tar.gz && make -C graphviz-@VERSION@/macosx/build && mv graphviz-@VERSION@/macosx/build/graphviz-*.pkg .
72
73 # codespell is a python script:
74 #      https://github.com/lucasdemarchi/codespell
75 # install on Fedora26 with:
76 #      pip install codespell
77 .PHONY: spellcheck
78 spellcheck:
79         codespell -d -q 3 --skip="*.po,*.ts"
80
81 DISTCLEANFILES = config.cache builddate.h FEATURE/* graphviz-@VERSION@*