1 ## Process this file with automake to produce Makefile.in
3 ACLOCAL_AMFLAGS = -I m4
5 export TAR_OPTIONS = --owner=0 --group=0 --exclude=windows/dependencies/*/*
7 txtdir = $(pkgdatadir)/doc
8 htmldir = $(pkgdatadir)/doc/html
10 txt = AUTHORS COPYING CHANGELOG.md NEWS cpl1.0.txt
16 pkginclude_HEADERS = $(top_builddir)/graphviz_version.h
20 # $(subdirs) contains the list from: AC_CONFIG_SUBDIRS
21 SUBDIRS = $(subdirs) lib plugin cmd tclpkg doc contrib share graphs rtest tests
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 {} \;
33 # find $(distdir) -type f -exec md5sum {} >>ToPAS \;
35 BUILT_SOURCES = $(top_builddir)/graphviz_version.h
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
41 EXTRA_DIST = $(txt) $(html) graphviz.spec \
42 autogen.sh config/depcomp config/config.rpath \
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
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;; \
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
65 rm -rf graphviz-@VERSION@
66 zcat graphviz-@VERSION@.tar.gz | tar xf -
67 (cd graphviz-@VERSION@; fakeroot make -f debian/rules binary)
71 tar xzf graphviz-@VERSION@.tar.gz && make -C graphviz-@VERSION@/macosx/build && mv graphviz-@VERSION@/macosx/build/graphviz-*.pkg .
73 # codespell is a python script:
74 # https://github.com/lucasdemarchi/codespell
75 # install on Fedora26 with:
76 # pip install codespell
79 codespell -d -q 3 --skip="*.po,*.ts"
81 DISTCLEANFILES = config.cache builddate.h FEATURE/* graphviz-@VERSION@*