source: trunk/Makefile.am @ 1923

Last change on this file since 1923 was 1923, checked in by sam, 8 years ago

build: add a common.am include file and a "make lolcheck" target that does
nothing for now except ensure that every makefile includes common.am.

File size: 1.9 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.
[1895]5SUBDIRS = build src tutorial test tools games people
6DIST_SUBDIRS = $(SUBDIRS) binaries
[92]7
[1520]8EXTRA_DIST = bootstrap TODO
[92]9AUTOMAKE_OPTIONS = dist-bzip2
10
[1923]11check: lolcheck
[877]12
[938]13dist: lolunit-$(LOLUNIT_VERSION).tar.gz
[1119]14dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
[938]15
[1119]16.PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
[938]17lolunit-$(LOLUNIT_VERSION).tar.gz:
18        rm -rf lolunit-$(LOLUNIT_VERSION)
19        mkdir lolunit-$(LOLUNIT_VERSION)
20        mkdir lolunit-$(LOLUNIT_VERSION)/lol
21        cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
22        tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
23        rm -rf lolunit-$(LOLUNIT_VERSION)
24
[1119]25.PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
26lolremez-$(LOLREMEZ_VERSION).tar.gz:
27        rm -rf lolremez-$(LOLREMEZ_VERSION)
28        mkdir lolremez-$(LOLREMEZ_VERSION)
29        mkdir lolremez-$(LOLREMEZ_VERSION)/lol
30        mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
[1120]31        cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
32          lolremez-$(LOLREMEZ_VERSION)/remez.cpp
33        cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
[1119]34          lolremez-$(LOLREMEZ_VERSION)/real.cpp
[1129]35        cp $(top_srcdir)/test/math/NEWS.txt \
36           $(top_srcdir)/test/math/lolremez.sln \
[1124]37           $(top_srcdir)/test/math/remez.vcxproj \
38           $(top_srcdir)/test/math/remez.vcxproj.filters \
39          lolremez-$(LOLREMEZ_VERSION)/
[1119]40        cp $(top_srcdir)/src/lol/math/real.h \
[1510]41           $(top_srcdir)/src/lol/math/vector.h \
[1119]42           $(top_srcdir)/src/lol/math/remez.h \
[1124]43          lolremez-$(LOLREMEZ_VERSION)/lol/math/
[1119]44        printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
45        printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
46        printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
47        printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
48        tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
49        rm -rf lolremez-$(LOLREMEZ_VERSION)
50
Note: See TracBrowser for help on using the repository browser.