source: trunk/Makefile.am @ 2117

Last change on this file since 2117 was 2117, checked in by sam, 7 years ago

vslol: add COPYING file and a "more information" URL.

File size: 2.0 KB
Line 
1
2include $(top_srcdir)/build/autotools/common.am
3
4# Put "people" at the end because they're more likely to break builds.
5SUBDIRS = build src tutorial test tools games people
6DIST_SUBDIRS = $(SUBDIRS) binaries
7
8EXTRA_DIST = bootstrap COPYING TODO
9AUTOMAKE_OPTIONS = dist-bzip2
10ACLOCAL_AMFLAGS = -I build/autotools/m4
11
12check: lolcheck
13
14dist: lolunit-$(LOLUNIT_VERSION).tar.gz
15dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
16
17.PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
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
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
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' > \
35          lolremez-$(LOLREMEZ_VERSION)/real.cpp
36        cp $(top_srcdir)/test/math/NEWS.txt \
37           $(top_srcdir)/test/math/lolremez.sln \
38           $(top_srcdir)/test/math/remez.vcxproj \
39           $(top_srcdir)/test/math/remez.vcxproj.filters \
40          lolremez-$(LOLREMEZ_VERSION)/
41        cp $(top_srcdir)/src/lol/math/real.h \
42           $(top_srcdir)/src/lol/math/vector.h \
43           $(top_srcdir)/src/lol/math/remez.h \
44          lolremez-$(LOLREMEZ_VERSION)/lol/math/
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.