File: Makefile.am

package info (click to toggle)
odin 2.0.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,224 kB
  • sloc: cpp: 62,639; sh: 4,541; makefile: 779
file content (83 lines) | stat: -rw-r--r-- 3,177 bytes parent folder | download | duplicates (4)
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
SUBDIRS = tjutils odinpara odinseq odinqt odindata odin pulsar geoedit miview odinreco cmdline-utils sequences samples coils docs icons replacements

EXTRA_DIST = 00odin.h odin.doxygen odin.nsi install.win install.macos

TESTS = cmdline-utils/odintestsuite

test: install
	$(TESTPREFIXCMD) ${prefix}/bin/odintestsuite
	$(MAKE) -C sequences test
	$(MAKE) -C odinreco test
	$(MAKE) -C docs/tutorials test

manual: all $(PACKAGE).doxygen
	$(MAKE) -C cmdline-utils manual
	$(MAKE) -C miview manual
	$(MAKE) -C odinreco manual
	rm -rf platforms.doxygen
	for platform in $(PLATFORMS) ; do \
	  echo "ENABLED_SECTIONS += $$platform" >> platforms.doxygen ; \
	done
	doxygen $(PACKAGE).doxygen

release:
	test ! # Please make sure that you have done the following before continuing
	test ! # - updated versions in configure.ac
	test ! # - updated ChangeLog
	test ! # - executed  svn copy https://svn.code.sf.net/p/od1n/code/trunk/odin  https://svn.code.sf.net/p/od1n/code/tags/release_x_y_z -m "Release message"
	test ! # Press <Enter> to continue
	read DUMMY
	$(MAKE) dist PLATFORMS=StandAlone
	test ! ########### Generating source dist ###############
	rm -f */*.1
	rm -rf $(PACKAGE)-homepage
	mkdir -p $(PACKAGE)-homepage
	rm -rf $(PACKAGE)-upload
	mkdir -p $(PACKAGE)-upload
	cp $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-upload
	test ! ########### Generating manual ####################
	$(MAKE) manual
	mv manual $(PACKAGE)-homepage
	test ! ########### Generating tutorial ##################
	$(MAKE) -C docs/tutorials main.pdf
	mv docs/tutorials/main.pdf $(PACKAGE)-homepage/odintut.pdf
	test ! ########### Generating homepage ##################
	rm -f docs/homepage/*.html
	$(MAKE) -C docs/homepage homepage
	cp docs/homepage/*.html docs/homepage/*.jpg docs/homepage/favicon.ico docs/homepage/*.png ChangeLog $(PACKAGE)-homepage
	convert -resize 16x16 icons/odin.png $(PACKAGE)-homepage/favicon.ico
	admin/sitemap.sh $(PACKAGE)-homepage http://od1n.sourceforge.net
	test ! ########### Success ! ############################
	test ! #
	test ! # Copy content of directory $(PACKAGE)-homepage to wodan,od1n@web.sourceforge.net:/home/groups/o/od/od1n/htdocs/ (via scp)
#	test ! # Copy content of directory $(PACKAGE)-upload to  wodan@frs.sourceforge.net:uploads (via sftp)
	test ! # Upload content of directory $(PACKAGE)-upload via webinterface
	test ! #


install-data-local:
	for platform in $(PLATFORMS) ; do \
	  if test -f $(srcdir)/platforms/$$platform/HOWTO.txt ; then \
	    mkdir -p ${prefix}/share/doc/odin/$$platform ; \
	    cp $(srcdir)/platforms/$$platform/HOWTO.txt ${prefix}/share/doc/odin/$$platform/ ; \
	  fi ; \
	done

uninstall-local:
	-rm -rf ${prefix}/share/doc/odin

dist-hook:
	mkdir -p $(distdir)/platforms
	for platform in $(PLATFORMS) ; do \
	  cp -r $(srcdir)/platforms/$$platform $(distdir)/platforms ; \
	done
	rm -rf `find $(distdir)/platforms -name .svn`

distclean-local:
	-rm -rf manual platforms.doxygen $(PACKAGE)-$(VERSION).tar.gz

svnclean: distclean
	for entry in $$(svn status | grep ^?  | grep -v  platforms/ | grep -v  platforms.tgz | awk '{print $$2}') ; do \
	  echo "Removing non-SVN file/directory $$entry"; \
	  rm -rf $$entry; \
	done