48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
SUBDIRS = src data
|
|
if BUILD_DOC
|
|
SUBDIRS += doc
|
|
endif
|
|
if BUILD_TEST
|
|
SUBDIRS += test
|
|
endif
|
|
DIST_SUBDIRS = src data doc
|
|
|
|
CLEANFILES = $(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
|
|
|
|
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 > $@
|
|
|
|
.PHONY: doc src test
|
|
doc src test:
|
|
$(MAKE) -C $@
|
|
test: src
|
|
|
|
FORCE:
|