diff options
author | Keith Packard <keithp@keithp.com> | 2005-08-01 23:47:55 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2005-08-01 23:47:55 +0000 |
commit | f4043547fbb2feb87f480388a695016b90f53279 (patch) | |
tree | e8519fda284c979d68bb3fd9ee0c424720a3d78a /src | |
parent | 027977140e19c5622331ac90eeb5e9bb9fe72640 (diff) |
Move building of StringDefs files to src and fix them so that parallel make
works right.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0a99092..fd43134 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -71,3 +71,29 @@ DISTCLEANFILES = StringDefs.c libXt_la_LIBADD = @XT_LIBS@ libXt_la_LDFLAGS = -version-number 6:0:0 -no-undefined + +# +# The util directory contains a program that builds some of the sources. +# The input to this program is given in files. Unfortunately those input +# files refers to things like +# +# util/foo +# +# so the generating program must be run from the top directory. +# + +BUILT_SOURCE = StringDefs.c +BUILT_HEADER = $(top_builddir)/include/X11/StringDefs.h $(top_builddir)/include/X11/Shell.h + +STRING_LIST = $(top_srcdir)/util/string.list + +all-local: $(BUILT_FILES) + +$(BUILT_HEADER): $(BUILT_SOURCE) + +$(BUILT_SOURCE): + $(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c + $(install_sh_DATA) -d $(top_builddir)/src $(top_builddir)/include/X11 + $(install_sh_DATA) StringDefs.h $(top_builddir)/include/X11/ + $(install_sh_DATA) Shell.h $(top_builddir)/include/X11/ + rm StringDefs.h Shell.h |