Add gspawn-win32.c to EXTRA_DIST.
[platform/upstream/glib.git] / Makefile.am
index 9f73023..5f1fe7a 100644 (file)
@@ -19,24 +19,29 @@ EXTRA_DIST =                        \
        README.win32            \
        TODO.xml                \
        glib.def                \
-       makefile.msc            \
        makefile.msc.in         \
-       makefile.mingw          \
        makefile.mingw.in       \
        giowin32.c              \
-       glibconfig.h.win32      \
        glibconfig.h.win32.in   \
        gwin32.c                \
-       config.h.win32          \
+       gspawn-win32.c          \
        config.h.win32.in       \
        build-dll               \
-       glib.rc                 \
        glib.rc.in              \
        glib-2.0.pc.in          \
        gobject-2.0.pc.in       \
        gmodule-2.0.pc.in       \
        gthread-2.0.pc.in
 
+# These may be in the builddir too
+BUILT_EXTRA_DIST = \
+       makefile.msc            \
+       makefile.mingw          \
+       glibconfig.h.win32      \
+       config.h.win32          \
+       glib.rc                 \
+       glib.spec
+
 lib_LTLIBRARIES = libglib-1.3.la
 
 libglib_1_3_la_SOURCES =       \
@@ -45,9 +50,11 @@ libglib_1_3_la_SOURCES =     \
        gbacktrace.c            \
        gcache.c                \
        gcompletion.c           \
+       gconvert.c              \
        gdataset.c              \
        gdate.c                 \
        gerror.c                \
+       gfileutils.c            \
        ghash.c                 \
        ghook.c                 \
        giochannel.c            \
@@ -62,7 +69,9 @@ libglib_1_3_la_SOURCES =      \
        grel.c                  \
        grand.c                 \
        gscanner.c              \
+       gshell.c                \
        gslist.c                \
+       gspawn.c                \
        gstrfuncs.c             \
        gstring.c               \
        gthread.c               \
@@ -76,12 +85,51 @@ libglib_1_3_la_SOURCES =    \
        gunidecomp.c            \
        gutils.c
 
+## If we decide to link in 'alloca.c', this is how to do it
+#libglib_1_3_la_LIBADD = @ALLOCA@
+
 glibincludedir=$(includedir)/glib-2.0
 glibinclude_HEADERS =   \
+       galloca.h       \
+       garray.h        \
+       gasyncqueue.h   \
+       gbacktrace.h    \
+       gcache.h        \
+       gcompletion.h   \
+       gconvert.h      \
+       gdataset.h      \
+       gdate.h         \
        gerror.h        \
+       gfileutils.h    \
+       ghash.h         \
+       ghook.h         \
+       giochannel.h    \
        glib.h          \
        glib-object.h   \
-       gunicode.h
+       glist.h         \
+       gmacros.h       \
+       gmain.h         \
+       gmem.h          \
+       gmessages.h     \
+       gnode.h         \
+       gprimes.h       \
+       gquark.h        \
+       gqueue.h        \
+       grand.h         \
+       grel.h          \
+       gscanner.h      \
+       gshell.h        \
+       gslist.h        \
+       gspawn.h        \
+       gstrfuncs.h     \
+       gstring.h       \
+       gthread.h       \
+       gthreadpool.h   \
+       gtimer.h        \
+       gtree.h         \
+       gtypes.h        \
+       gunicode.h      \
+       gutils.h
 
 configexecincludedir = $(libdir)/glib-2.0/include
 #configexecinclude_DATA = glibconfig.h
@@ -92,7 +140,7 @@ install-exec-local: glibconfig.h
        if test -r $$file && cmp -s glibconfig.h $$file; then :; \
        else $(INSTALL_DATA) glibconfig.h $$file; fi
 
-configure: configure.in acglib.m4              
+CONFIGURE_DEPENDENCIES = acglib.m4
 
 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
 glibconfig.h: stamp-gc-h
@@ -153,5 +201,8 @@ snapshot:
 snapcheck:
        $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
 
-dist-hook:
-       cp glib.spec $(distdir)
+dist-hook: $(BUILT_EXTRA_DIST)
+       files='$(BUILT_EXTRA_DIST)'; \
+       for f in $$files; do \
+         if test -f $$f; then d=.; else d=$(srcdir); fi; \
+         cp $$d/$$f $(distdir) || exit 1; done