-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
43 lines (30 loc) · 921 Bytes
/
Makefile.am
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
ACLOCAL_AMFLAGS= -I build
BUILT_SOURCES= ChangeLog
EXTRA_DIST= COPYING \
INSTALL \
NEWS \
README \
THANKS \
$(BUILT_SOURCES)
pkgdata_DATA= adg-demo.lua
dist_pkgdata_DATA= adg-web.lua \
piston.lua
# Creating ChangeLog files from git log:
# idea stolen from cairo/build/Makefile.am.changelog
ChangeLog:
$(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
( cd "$(srcdir)" && git log --stat > $@ ) ; \
else \
echo ' *WARN A git checkout is required to generate $@' ; \
touch $@ ; \
fi
# rockspec handling, based on instruction by Reuben Thomas found at
# http://luarocks.org/en/Creating_LuaRocks_with_GNU_autotools
ROCKSPEC = $(PACKAGE_TARNAME)-$(VERSION)-1.rockspec
rock: $(ROCKSPEC)
$(ROCKSPEC): rockspec dist dist
$(AM_V_GEN)set -- `$(MD5SUM) $(distdir).tar.bz2` ; \
sed -e "s/@MD5@/$$1/" < $< > $@
EXTRA_DIST+= rockspec.in
DISTCLEANFILES= rockspec
.PHONY: rock