40 lines
945 B
Makefile
40 lines
945 B
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
if BUILD_TEST
|
|
SUBDIRS_TEST = test
|
|
endif
|
|
|
|
SUBDIRS = src data doc $(SUBDIRS_TEST)
|
|
|
|
CLEANFILES = $(PACKAGE).spec
|
|
|
|
MAINTAINERCLEANFILES = aclocal.m4 compile \
|
|
config.guess config.h.in config.sub configure \
|
|
depcomp install-sh ltmain.sh missing Makefile.in \
|
|
imlib2_docs.tar.gz
|
|
|
|
EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN gendoc \
|
|
Doxyfile \
|
|
README.in README \
|
|
$(PACKAGE).pc.in \
|
|
$(PACKAGE).spec.in
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(PACKAGE).pc
|
|
|
|
if SRC_IS_GIT
|
|
RPM_RELEASE=`echo -n "1.%(date '+%y%m%d').git"; git rev-parse --short=8 HEAD`
|
|
else
|
|
RPM_RELEASE=`echo -n "1.%(date '+%y%m%d')"`
|
|
endif
|
|
|
|
dist-hook: $(top_builddir)/$(PACKAGE).spec
|
|
|
|
$(top_builddir)/$(PACKAGE).spec: FORCE
|
|
sed "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPM_RELEASE)/" \
|
|
$(top_srcdir)/$(PACKAGE).spec.in > $@
|
|
|
|
FORCE:
|