]> git.draconx.ca Git - upkg.git/commitdiff
Ditch local orderonly trick.
authorNick Bowler <nbowler@draconx.ca>
Thu, 24 Feb 2022 04:20:34 +0000 (23:20 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 24 Feb 2022 04:28:31 +0000 (23:28 -0500)
The orderonly trick used here is missing various updates in fix-gnulib
that improve interoperability with various make implementations.

We can just rely on the logic in $(gnulib_headers) to get its version
of the order-only behaviour, particularly since every file including
these ones should have gnulib header dependencies.

Makefile.am

index d6d99b0fc66251384bd636efa3fa31e137492154..57d8142e5bd22cfc4671d1458245c1a73ff7708a 100644 (file)
@@ -32,10 +32,6 @@ include_HEADERS =
 
 dist_man_MANS = doc/man/upkg.1
 
-# This trick should define orderonly to | iff we're using GNU make.
-have_orderonly = $(findstring order-only,$(.FEATURES))
-orderonly = $(have_orderonly:order-only=|)
-
 upkg_SOURCES = src/upkg.c src/upkg.h src/upkgopts.h \
                common/src/help.c common/src/help.h
 upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic
@@ -76,7 +72,7 @@ engine_la_SOURCES = $(engine_GOBS:.gob=.c) $(engine_GOBS:.gob=.h) \
        src/engine/pcx.h
 engine_la_LDFLAGS  = $(AM_LDFLAGS) $(moduleflags)
 engine_la_LIBADD   = $(GLIB_LIBS)
-$(engine_la_OBJECTS): $(orderonly) $(engine_GOBS:.gob=.gobstamp)
+$(engine_la_OBJECTS): $(gnulib_headers) $(engine_GOBS:.gob=.gobstamp)
 
 if USE_DUMMYMOD
 engine_la_SOURCES += src/engine/music-dummymod.c