summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: dd4d63932bd3713a7df41bd560165f8c3fe57900 (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
51
52
53
54
55
56
57
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

really-clean: distclean
	rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \
		$(srcdir)/configure \
		$(srcdir)/config.h.in \
		$(srcdir)/build-aux/ $(srcdir)/INSTALL $(srcdir)/Makefile.in \
		$(srcdir)/ChangeLog

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