build: move custom targets to scripts/ and remove from makefile
These scripts generate source code that is committed to git and hence do not really belong in the build system. A maintainer runs them as needed. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
00b08eae82
commit
0a19267f30
21
Makefile.am
21
Makefile.am
|
@ -4,8 +4,10 @@ pkgconfigdir = $(libdir)/pkgconfig
|
|||
pkgconfig_DATA = xkbcommon.pc
|
||||
|
||||
EXTRA_DIST = \
|
||||
makekeys.py \
|
||||
makeheader.py \
|
||||
scripts/makeheader \
|
||||
scripts/makekeys \
|
||||
scripts/update-keysyms \
|
||||
scripts/update-keywords \
|
||||
src/xkbcomp/keywords.gperf \
|
||||
test/data \
|
||||
README.md \
|
||||
|
@ -314,21 +316,6 @@ bench_rules_LDADD = $(BENCH_LDADD)
|
|||
bench_rulescomp_LDADD = $(BENCH_LDADD)
|
||||
bench_compose_LDADD = $(BENCH_LDADD)
|
||||
|
||||
##
|
||||
# Custom targets
|
||||
##
|
||||
|
||||
# Run this to regenerate xkbcommon-keysyms.h from the X11 headers
|
||||
# defining the keysyms and update the name <-> keysym mapping.
|
||||
update-keysyms:
|
||||
LC_CTYPE=C python $(top_srcdir)/makeheader.py > $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
|
||||
LC_CTYPE=C python $(top_srcdir)/makekeys.py $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h > $(top_srcdir)/src/ks_tables.h
|
||||
|
||||
# Run this if you add/remove a new keyword to the xkbcomp scanner,
|
||||
# or just want to regenerate the gperf file.
|
||||
update-keywords:
|
||||
$(AM_V_GEN)gperf < $(top_srcdir)/src/xkbcomp/keywords.gperf > $(top_srcdir)/src/xkbcomp/keywords.c
|
||||
|
||||
##
|
||||
# Android stuff
|
||||
##
|
||||
|
|
|
@ -33,7 +33,7 @@ Dependencies for libxkbcommon:
|
|||
|
||||
- (build optional) gperf.
|
||||
Output included in git and tarball. To regenerate, use
|
||||
`make update-keywords`.
|
||||
`./scripts/update-keywords`.
|
||||
|
||||
Dependencies for libxkbcommon-x11:
|
||||
- libxkbcommon.
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Run this to regenerate xkbcommon-keysyms.h from the X11 headers
|
||||
# defining the keysyms and update the name <-> keysym mapping.
|
||||
export LC_CTYPE=C
|
||||
scripts/makeheader > xkbcommon/xkbcommon-keysyms.h
|
||||
scripts/makekeys xkbcommon/xkbcommon-keysyms.h > src/ks_tables.h
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# Run this if you add/remove a new keyword to the xkbcomp scanner,
|
||||
# or just want to regenerate the gperf file.
|
||||
gperf < src/xkbcomp/keywords.gperf > src/xkbcomp/keywords.c
|
Loading…
Reference in New Issue