48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
MAINTAINERCLEANFILES = aclocal.m4 config.* compile configure depcomp \
|
|
install-sh missing \
|
|
Makefile.in
|
|
|
|
CLEANFILES = $(PACKAGE).spec e16-keyedit.desktop
|
|
|
|
EXTRA_DIST = $(PACKAGE).spec.in e16-keyedit.desktop.in
|
|
|
|
bin_PROGRAMS = e16keyedit
|
|
|
|
e16keyedit_SOURCES = ipc.c menus.c viewer.c e16keyedit.h
|
|
|
|
CPPFLAGS = -D DATADIR=\"$(datadir)\" $(GTK_CFLAGS) $(CFLAGS_WARNINGS)
|
|
|
|
LDADD = $(GTK_LIBS) $(X_LIBS) -lX11
|
|
|
|
applicationdir = $(datadir)/applications
|
|
application_DATA = e16-keyedit.desktop
|
|
|
|
e16-keyedit.desktop: $(srcdir)/e16-keyedit.desktop.in Makefile
|
|
|
|
e16-keyedit.desktop:
|
|
sed -e "s=@e16datadir@=${datadir}=" $(srcdir)/$@.in > $@
|
|
|
|
dist-hook: $(top_builddir)/$(PACKAGE).spec
|
|
|
|
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: release
|
|
release:
|
|
$(MAKE) dist release=y
|
|
|
|
FORCE:
|