Move makekeys to separate subdir

The build is a little cleaner when makekeys has its own Makefile.
master
Dan Nicholson 2009-01-22 07:16:12 -08:00
parent b2737e9bfb
commit 49cda1187f
6 changed files with 16 additions and 7 deletions

View File

@ -77,5 +77,6 @@ AC_OUTPUT([
Makefile
include/Makefile
src/Makefile
src/makekeys/Makefile
test/Makefile
])

1
src/.gitignore vendored
View File

@ -1,3 +1,2 @@
ks_tables.h
libxkbcommon.la
makekeys

View File

@ -1,13 +1,15 @@
SUBDIRS = makekeys
INCLUDES = -I$(top_srcdir)/include
noinst_PROGRAMS = makekeys
makekeys_CFLAGS = $(X11_CFLAGS)
makekeys: CC = $(CC_FOR_BUILD)
BUILT_SOURCES = ks_tables.h
ks_tables.h: makekeys
ks_tables.h: $(builddir)/makekeys/makekeys$(EXEEXT)
@rm -f $@
cat $(KEYSYMDEF_H) $(XF86KEYSYM_H) | $(builddir)/makekeys$(EXEEXT) >$@
cat $(KEYSYMDEF_H) $(XF86KEYSYM_H) | \
$(builddir)/makekeys/makekeys$(EXEEXT) >$@
$(builddir)/makekeys/makekeys$(EXEEXT):
@cd makekeys && $(MAKE) $(AM_MAKEFLAGS)
lib_LTLIBRARIES = libxkbcommon.la
libxkbcommon_la_CFLAGS = $(X11_CFLAGS)

1
src/makekeys/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
makekeys

6
src/makekeys/Makefile.am Normal file
View File

@ -0,0 +1,6 @@
INCLUDES = -I$(top_srcdir)/include
# need to use build-native compiler
CC = $(CC_FOR_BUILD)
noinst_PROGRAMS = makekeys
makekeys_CFLAGS = $(X11_CFLAGS)