source: trunk/Makefile.am @ 2343

Last change on this file since 2343 was 2167, checked in by jylam, 7 years ago
  • Doxygen doc / manpages
File size: 2.0 KB
RevLine 
[92]1
[1923]2include $(top_srcdir)/build/autotools/common.am
3
[1744]4# Put "people" at the end because they're more likely to break builds.
[2167]5SUBDIRS = build src tutorial test tools games people doc
[1895]6DIST_SUBDIRS = $(SUBDIRS) binaries
[92]7
[2117]8EXTRA_DIST = bootstrap COPYING TODO
[92]9AUTOMAKE_OPTIONS = dist-bzip2
[1982]10ACLOCAL_AMFLAGS = -I build/autotools/m4
[92]11
[1923]12check: lolcheck
[877]13
[938]14dist: lolunit-$(LOLUNIT_VERSION).tar.gz
[1119]15dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
[938]16
[1119]17.PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
[938]18lolunit-$(LOLUNIT_VERSION).tar.gz:
19        rm -rf lolunit-$(LOLUNIT_VERSION)
20        mkdir lolunit-$(LOLUNIT_VERSION)
21        mkdir lolunit-$(LOLUNIT_VERSION)/lol
22        cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
23        tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
24        rm -rf lolunit-$(LOLUNIT_VERSION)
25
[1119]26.PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
27lolremez-$(LOLREMEZ_VERSION).tar.gz:
28        rm -rf lolremez-$(LOLREMEZ_VERSION)
29        mkdir lolremez-$(LOLREMEZ_VERSION)
30        mkdir lolremez-$(LOLREMEZ_VERSION)/lol
31        mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
[1120]32        cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
33          lolremez-$(LOLREMEZ_VERSION)/remez.cpp
34        cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
[1119]35          lolremez-$(LOLREMEZ_VERSION)/real.cpp
[1129]36        cp $(top_srcdir)/test/math/NEWS.txt \
37           $(top_srcdir)/test/math/lolremez.sln \
[1124]38           $(top_srcdir)/test/math/remez.vcxproj \
39           $(top_srcdir)/test/math/remez.vcxproj.filters \
40          lolremez-$(LOLREMEZ_VERSION)/
[1119]41        cp $(top_srcdir)/src/lol/math/real.h \
[1510]42           $(top_srcdir)/src/lol/math/vector.h \
[1119]43           $(top_srcdir)/src/lol/math/remez.h \
[1124]44          lolremez-$(LOLREMEZ_VERSION)/lol/math/
[1119]45        printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
46        printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
47        printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
48        printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
49        tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
50        rm -rf lolremez-$(LOLREMEZ_VERSION)
51
Note: See TracBrowser for help on using the repository browser.