Add Debian appliance directory to the distfile.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 3 Jul 2009 09:47:10 +0000 (10:47 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 3 Jul 2009 09:48:55 +0000 (10:48 +0100)
'make dist' won't copy symlinks into the output file, so we
have to add a rule to the Makefile to copy these.

(Issue reported by Guido Gunther).

appliance/Makefile.am

index 03b2a7b..9de11cd 100644 (file)
@@ -21,7 +21,11 @@ EXTRA_DIST = \
        kmod.whitelist \
        kmod.whitelist.in \
        packagelist.in \
-       init
+       init \
+       debian/modules/install_kernel \
+       debian/modules/y0_install-guestfsd \
+       debian/modules/z99_final-cleanups \
+       debian/debirf.conf.in
 
 # Build the root filesystem (appliance).
 # Currently this is arch-dependent, so it seems like putting it in
@@ -92,6 +96,23 @@ $(SUPERMINIMG): supermin.incfiles supermin-make.sh
 
 endif
 
+# Extra symlinks needed by the Debian appliance.
+debirf_symlinks = \
+       a0_motd \
+       a0_prep-root \
+       network \
+       root-bashrc \
+       serial-terminal \
+       z0_remove-aptitude \
+       z0_remove-locales \
+       z1_clean-root
+noinst_DATA = $(debirf_symlinks:%=debian/modules/%)
+$(debirf_symlinks:%=debian/modules/%): stamp-debirf-modules
+stamp-debirf-modules:
+       for f in $(debirf_symlinks); do \
+         ln -sf /usr/share/debirf/modules/$$f debian/modules/$$f; \
+       done
+
 #----------------------------------------------------------------------
 # Extra rules for testing the appliance.