summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 6b2b856af94b488c2d49c70a6f2a4a0bcb79826b (plain)
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
mapsdir = $(pkgdatadir)/maps
tilesetsdir = $(pkgdatadir)/tilesets

bin_PROGRAMS = sdlex

sdlex_SOURCES =

sdlex_CPPFLAGS = \
	$(SDL_CFLAGS) \
	$(SDL_IMAGE_CFLAGS) \
	$(ZLIB_CFLAGS) \
	$(EXPAT_CFLAGS) \
	-DMAPSDIR=\"$(mapsdir)\" \
	-DTILESETSDIR=\"$(tilesetsdir)\"

sdlex_CFLAGS = \
	$(GCC_CFLAGS)

sdlex_LDADD = \
	$(SDL_LIBS) \
	$(SDL_IMAGE_LIBS) \
	$(ZLIB_LIBS) \
	$(EXPAT_LIBS)

CLEANFILES =
DISTCLEANFILES =

EXTRA_DIST = \
	autogen.sh

uninstall-hook:
	for dir in '$(DESTDIR)$(mapsdir)' '$(DESTDIR)$(tilesetsdir)'; do \
		if [ -d "$${dir}" ]; then \
			rmdir "$${dir}"; \
		fi; \
	done

dist-hook:
	if [ -d '$(srcdir)/.git' ]; then \
		printf 'Generated file.  Do not edit.\n\n' \
			>'$(distdir)/ChangeLog~'; \
		git log --stat >>'$(distdir)/ChangeLog~'; \
		mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
	fi

.xcf.png:
	$(XCF2PNG) -f -o $@ $<

include $(top_srcdir)/src/local.mk
include $(top_srcdir)/data/local.mk