X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/947f12306d4236c63a7f3449191ec8337ee42469..6df203a00536662101ec4a4275ec84baa7527d79:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index c2019c3..8d37ea8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -# Copyright (C) 2009 Nick Bowler +# Copyright (C) 2009-2011 Nick Bowler # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, @@ -7,12 +7,19 @@ AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib AM_LDFLAGS = -L$(top_builddir)/lib +EXTRA_DIST = +MAINTAINERCLEANFILES = + lib_LTLIBRARIES = libupkg.la pkglib_LTLIBRARIES = include_HEADERS = upkg.h noinst_HEADERS = pack.h +# This trick should define orderonly to | iff we're using GNU make. +have_orderonly = $(findstring order-only,$(.FEATURES)) +orderonly = $(have_orderonly:order-only=|) + include uobject/Makefile.inc include engine/Makefile.inc @@ -23,3 +30,24 @@ upkg_SOURCES = upkg.c upkg_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu + +GOB_V = $(GOB_V_$(V)) +GOB_V_ = $(GOB_V_$(AM_DEFAULT_VERBOSITY)) +GOB_V_0 = @echo " GOB " $<; + +.gob.gobstamp: + $(AM_V_at) touch $@.tmp + $(GOB_V) $(GOB2) --file-sep=/ --no-private-header $< + $(AM_V_at) mv -f $@.tmp $@ + +.gobstamp.c: + @if test -f $@; then :; else \ + rm -f $<; \ + $(MAKE) $(AM_MAKEFLAGS) $<; \ + fi + +.gobstamp.h: + @if test -f $@; then :; else \ + rm -f $<; \ + $(MAKE) $(AM_MAKEFLAGS) $<; \ + fi