make `make underlays` work in a clean tree that has not been built
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 21 Jul 2009 11:28:19 +0000 (13:28 +0200)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 21 Jul 2009 11:28:19 +0000 (13:28 +0200)
po/Makefile

index 20c0cb3a80032b3d0f625e39fa81e129f7d69496..69aba722b548a2a0015d48938282ddda82fa9670 100644 (file)
@@ -74,9 +74,15 @@ underlays_copy_stamp:
        install -d underlays/empty
        touch $@
 
-underlays: underlays_copy_stamp
+underlays: ../ikiwiki.out underlays_copy_stamp
        ../ikiwiki.out -libdir .. -setup underlay.setup -refresh
 
+../ikiwiki.out: ../Makefile
+       make -C .. ikiwiki.out
+
+../Makefile: ../Makefile.PL
+       cd .. && ./Makefile.PL
+
 ../underlays/locale: po2wiki_stamp
 po2wiki_stamp: po2wiki underlays_copy_stamp
        PERL5LIB=.. ./po2wiki underlay.setup