diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-05-11 23:22:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-05-11 23:22:14 +0000 |
commit | 8b92d1b89be00930a0aa488e6a4d28b55a5069c1 (patch) | |
tree | 952ad6a0cbe06475940670e2a14ba78cdd1857df /move/Makefile | |
parent | b809fb59b049710d7510b991f3f983e85fcf9c2e (diff) | |
download | drakx-backup-do-not-use-8b92d1b89be00930a0aa488e6a4d28b55a5069c1.tar drakx-backup-do-not-use-8b92d1b89be00930a0aa488e6a4d28b55a5069c1.tar.gz drakx-backup-do-not-use-8b92d1b89be00930a0aa488e6a4d28b55a5069c1.tar.bz2 drakx-backup-do-not-use-8b92d1b89be00930a0aa488e6a4d28b55a5069c1.tar.xz drakx-backup-do-not-use-8b92d1b89be00930a0aa488e6a4d28b55a5069c1.zip |
- rationalize the Makefile
- for now only build the clps for the main langs (for devel speed)
Diffstat (limited to 'move/Makefile')
-rw-r--r-- | move/Makefile | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/move/Makefile b/move/Makefile index 67aa7932a..e1648d574 100644 --- a/move/Makefile +++ b/move/Makefile @@ -29,16 +29,15 @@ default: install get_dest_livetree: @echo -n $(DEST_LIVETREE) +iso: build install live_tree_boot clps only_iso + + build: stage1 xwait runlevel_set sudo ./collect-directories-to-create.pl $(DEST_LIVETREE) > data/directories-to-create sudo find $(DEST_LIVETREE)/etc -type f | perl -pe 's|$(DEST_LIVETREE)||' > data/all-etcfiles $(MAKE) -C ../perl-install mo_files -stage1: - cd $(STAGE1) && ADDITIONAL_DEFS="-DMANDRAKE_MOVE" MOVE=1 make dirs init stage1-full init-move - cd .. ; ./make_boot_img move - -install: +install: un_live_tree_boot sudo cp -f $(STAGE1)/init-move $(DEST_LIVETREE)/sbin/init $(MAKE) -C ../perl-install/share/po install NAME=libDrakX DATADIR=$(DEST_LIVETREE)/usr/share @@ -62,7 +61,7 @@ install: sudo cp -f $(INSTALL)/pixmaps/langs/lang-*.png $(DEST_LIVETREE)/usr/share/langs #- overwrite /usr/lib/libDrakX files of the live tree with those in CVS - (cd $(DEST_LIVETREE)/usr/lib/libDrakX ; find -name "*.pm") | egrep -v 'ctxhelp|drakfirsttime|xfree3|xfree4|xfreeX' | (cd $(INSTALL) ; sudo cpio -pLumd $(DEST_LIVETREE)/usr/lib/libDrakX/) + (cd $(DEST_LIVETREE)/usr/lib/libDrakX ; find -name "*.pm") | egrep -v 'ctxhelp|drakfirsttime' | (cd $(INSTALL) ; sudo cpio -pLumd $(DEST_LIVETREE)/usr/lib/libDrakX/) #- overwrite stuff.so of drakxtools because it doesn't contain C_DRAKX stuff sudo cp -f ../perl-install/c/blib/arch/auto/stuff/stuff.so $(DEST_LIVETREE)/usr/lib/libDrakX/auto/c/stuff @@ -87,26 +86,31 @@ install: grep ChangeLog $(INSTALL)/CVS/Entries > /tmp/version sudo cp -f /tmp/version $(DEST_LIVETREE)/usr/share/VERSION +un_live_tree_boot: + ./make_live_tree_boot -u $(DEST_LIVETREE) + tools/fix-fc-cache.pl $(DEST_LIVETREE) + live_tree_boot: rm -f $(DEST)/live_tree*.clp ./make_live_tree_boot $(DEST_LIVETREE) tools/fix-fc-cache.pl $(DEST_LIVETREE) + $(MAKE) clps + +clps: $(MAKE) $(DEST)/live_tree_always.clp $(MAKE) $(DEST)/live_tree_boot.clp $(MAKE) $(DEST)/live_tree_totem.clp -$(MAKE) $(DEST)/live_tree_nvidia.clp - $(MAKE) $(patsubst %, $(DEST)/live_tree_always_i18n_%.clp, $(LANG_FILES)) + for i in en fr de it es; do $(MAKE) $(DEST)/live_tree_i18n_$$i.clp $(DEST)/live_tree_always_i18n_$$i.clp; done + $(MAKE) $(DEST)/live_tree.clp -un_live_tree_boot: - ./make_live_tree_boot -u $(DEST_LIVETREE) - tools/fix-fc-cache.pl $(DEST_LIVETREE) -iso: un_live_tree_boot build install live_tree_boot - rm -rf $(DEST)/iso $(DEST)/live_tree.clp +only_iso: + rm -rf $(DEST)/iso mkdir $(DEST)/iso cp -a isolinux $(DEST)/iso rm -rf $(DEST)/iso/isolinux/CVS - $(MAKE) $(DEST)/live_tree.clp + mv $(DEST)/*.clp $(DEST)/iso touch $(DEST)/iso/isolinux/boot.cat @@ -119,6 +123,11 @@ iso: un_live_tree_boot build install live_tree_boot # cdrecord -v -eject dev=0,0,0 blank=fast gracetime=2 speed=99 $(ISO) # ftp://a:a@leia//BIG/mdkmove.iso + +stage1: + cd $(STAGE1) && ADDITIONAL_DEFS="-DMANDRAKE_MOVE" MOVE=1 make dirs init stage1-full init-move + cd .. ; ./make_boot_img move + xwait: %: %.c $(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@ |