File: Makefile.am

package info (click to toggle)
imlib2 1.12.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,764 kB
  • sloc: ansic: 36,251; asm: 20,004; sh: 4,863; makefile: 839
file content (60 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download | duplicates (2)
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
58
59
60
AUTOMAKE_OPTIONS = foreign

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src
if BUILD_DOC
SUBDIRS += doc
endif
if BUILD_TEST
SUBDIRS += test
endif

CLEANFILES = $(PACKAGE).pc $(PACKAGE).spec

MAINTAINERCLEANFILES = aclocal.m4 compile \
		       config.guess config.h.in config.sub configure \
		       depcomp install-sh ltmain.sh missing \
		       Makefile.in */Makefile.in */*/Makefile.in */*/*/Makefile.in \
		       imlib2_docs.tar.gz

EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN \
	     README.in README \
	     $(PACKAGE).pc.in \
	     $(PACKAGE).spec.in

clean-local:
	test ! -f test/Makefile || $(MAKE) -C test clean

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc

dist-hook: $(top_builddir)/$(PACKAGE).spec
	if [ -s $(distdir)/test/Makefile.am ]; then \
	  rm -f $(distdir)/test/*.*; \
	  touch $(distdir)/test/Makefile.am; \
	  cd $(top_srcdir) && $(AUTOMAKE) --foreign $(abs_builddir)/$(distdir)/test/Makefile; \
	fi

RPR_DEV = `echo -n "1.%(date '+%y%m%d').git"; git rev-parse --short=8 HEAD`
RPR_REL = 1
SED_DEV = "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPR_DEV)/"
SED_REL = "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPR_REL)/"

$(top_builddir)/$(PACKAGE).spec: FORCE
	@if [ -f $(top_srcdir)/.git-src -a -z "$(release)" ]; then \
	  sed $(SED_DEV) $(top_srcdir)/$(PACKAGE).spec.in > $@; \
	else \
	  sed $(SED_REL) $(top_srcdir)/$(PACKAGE).spec.in > $@; \
	fi

.PHONY: doc src test
doc src test:
	$(MAKE) -C $@
test: src

.PHONY: release
release:
	$(MAKE) dist release=y

FORCE: