3 # Uncomment this to turn on verbose mode.
6 include debian/xsfbs/xsfbs.mk
8 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11 # FOR AUTOCONF 2.52 AND NEWER ONLY
12 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
13 confflags += --build $(DEB_HOST_GNU_TYPE)
15 confflags += --build $(DEB_HOST_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
16 # confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
20 xkb_base := /$(DATAFS)/etc/X11/xkb
21 #xkb_base := /usr/share/X11/xkb
24 #configure: $(STAMP_DIR)/patch
28 config.status: configure
30 ./configure $(confflags) \
32 --disable-xkbcomp-symlink --with-xkb-rules-symlink=xfree86,xorg \
33 --with-xkb-base=$(xkb_base) --datarootdir=/opt/etc
36 #build: $(STAMP_DIR)/build
37 #$(STAMP_DIR)/build: config.status
39 build-stamp: config.status
42 cd po && intltool-update -p && cd ..
48 [ ! -f Makefile ] || $(MAKE) distclean
49 rm -rf $$(find -name Makefile.in)
50 rm -f aclocal.m4 configure install-sh intltool-*.in
51 rm -f missing po/Makefile.in.in
52 rm -f semantics/semantics.dir
53 rm -f rules/evdev rules/evdev.xml.in
55 # Files not cleaned up
56 -rm -f intltool-extract intltool-merge intltool-update
58 -rm -f po/.intltool-merge-cache config.status.lineno
60 rm -f compat/compat.dir geometry/geometry.dir keycodes/keycodes.dir
61 rm -f keymap/keymap.dir symbols/symbols.dir types/types.dir rules/base
62 rm -f rules/compat/base.l[2-4]*.part rules/compat/base.m*.part
65 dpkg-buildpackage -rfakeroot -i'/\.git|/\.svn'
68 set -e; for f in compat geometry keycodes keymap semantics symbols types; do \
71 make $$f.dir XKBCOMP=xkbcomp; \
72 LC_ALL=C sort -k3 $$f.dir > $$f.new && mv $$f.new $$f.dir; \
74 cp $$f/$$f.dir debian/; \
83 $(MAKE) install DESTDIR=$(CURDIR)/debian/xkb-data
84 # Remove this symlink, it is no more needed
85 rm -f $(CURDIR)/debian/xkb-data/$(xkb_base)/compiled
87 # Move base.xml to /etc/X11/xkb/ and make
88 # /usr/share/X11/xkb/rules/base.xml links to it
89 mv debian/xkb-data/$(DATAFS)/etc/X11/xkb/rules/base.xml debian/xkb-data/etc/X11/xkb/
90 dh_link etc/X11/xkb/base.xml $(DATAFS)/etc/X11/xkb/rules/base.xml
92 # Build architecture-dependent files here.
93 binary-arch: build install
94 # We have nothing to do by default.
96 # Build architecture-independent files here.
97 binary-indep: build install
100 # dh_installchangelogs ChangeLog
109 binary: binary-indep binary-arch
110 .PHONY: build clean binary-indep binary-arch binary install