summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: ff46f2dab575ea47d436c526350c7f57a820c977 (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
SUBDIRS = $(TOPSUBDIRS)

$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;

$(top_srcdir)/subdirs:
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs

$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4

MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 

package-messages:
	cd $(top_srcdir) && $(MAKE) includedir=$(kde_includes) -f admin/Makefile.common package-messages
	$(MAKE) -C po merge

EXTRA_DIST = admin COPYING configure.in.in Makefile.cvs kkbswitch.1\
   configure.files Doxyfile kkbswitch.tdevelop kkbswitch.lsm \
   kkbswitch.spec kkbswitch.xpm subdirs kkbswitch.sgml

man_MANS = kkbswitch.1
DISTCHECK_CONFIGURE_FLAGS = --disable-ru-ua-layout
KDE_OPTIONS = noautodist

dist-hook:
	cd $(top_distdir) && perl admin/am_edit -padmin
	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
#	rm -f $(distdir)/kkbswitch.tdevelop.pcs
#	rm -f $(distdir)/$(PACKAGE)-*.tar.gz


rpmdir = _rpm
specfile = $(PACKAGE).spec
rpm: $(specfile)
	rm -rf $(rpmdir)
	mkdir $(rpmdir)
	mkdir -p rpms
	cd $(rpmdir) && \
	mkdir RPMS SRPMS SOURCES SPECS BUILD RPMS/i386 RPMS/noarch && \
	cp ../$(specfile) SPECS && \
	cp ../$(distdir).tar.gz SOURCES && \
	rpmbuild --define "_topdir "`pwd` -ba SPECS/$(specfile) && \
	cp SRPMS/* RPMS/*/* ../rpms && cd .. && rm -rf $(rpmdir)