/[baselayout]/trunk/Makefile
Gentoo

Diff of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3200 Revision 3201
22ifneq ($(OS),Linux) 22ifneq ($(OS),Linux)
23OS=BSD 23OS=BSD
24endif 24endif
25endif 25endif
26 26
27KEEP_DIRS-BSD += \
28 /var/lock \
29 /var/run
27KEEP_DIRS-Linux += \ 30KEEP_DIRS-Linux += \
28 /dev \ 31 /dev \
29 /run \ 32 /run \
30 /sys \ 33 /sys \
31 /usr/src 34 /usr/src
54 $(INSTALL_DIR) $(DESTDIR)/etc 57 $(INSTALL_DIR) $(DESTDIR)/etc
55 cp -pPR etc/* etc.$(OS)/* $(DESTDIR)/etc/ 58 cp -pPR etc/* etc.$(OS)/* $(DESTDIR)/etc/
56 $(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout 59 $(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout
57 cp -pPR share.$(OS)/* $(DESTDIR)/usr/share/baselayout/ 60 cp -pPR share.$(OS)/* $(DESTDIR)/usr/share/baselayout/
58 61
59layout: 62layout-dirs:
60 # Create base filesytem layout 63 # Create base filesytem layout
61 for x in $(KEEP_DIRS) ; do \ 64 for x in $(KEEP_DIRS) ; do \
62 test -e $(DESTDIR)$$x/.keep && continue ; \ 65 test -e $(DESTDIR)$$x/.keep && continue ; \
63 $(INSTALL_DIR) $(DESTDIR)$$x || exit $$? ; \ 66 $(INSTALL_DIR) $(DESTDIR)$$x || exit $$? ; \
64 touch $(DESTDIR)$$x/.keep || echo "ignoring touch failure; mounted fs?" ; \ 67 touch $(DESTDIR)$$x/.keep || echo "ignoring touch failure; mounted fs?" ; \
65 done 68 done
69
70layout-BSD: layout-dirs
71 -chgrp uucp $(DESTDIR)/var/lock
72 install -m 0775 -d $(DESTDIR)/var/lock
73
74layout-Linux: layout-dirs
75 ln -snf /run $(DESTDIR)/var/run
76 ln -snf /run/lock $(DESTDIR)/var/lock
77
78layout: layout-dirs layout-$(OS)
66 # Special dirs 79 # Special dirs
67 install -m 0700 -d $(DESTDIR)/root 80 install -m 0700 -d $(DESTDIR)/root
68 touch $(DESTDIR)/root/.keep 81 touch $(DESTDIR)/root/.keep
69 install -m 1777 -d $(DESTDIR)/var/tmp 82 install -m 1777 -d $(DESTDIR)/var/tmp
70 touch $(DESTDIR)/var/tmp/.keep 83 touch $(DESTDIR)/var/tmp/.keep
71 install -m 1777 -d $(DESTDIR)/tmp 84 install -m 1777 -d $(DESTDIR)/tmp
72 touch $(DESTDIR)/tmp/.keep 85 touch $(DESTDIR)/tmp/.keep
73 ln -snf /run $(DESTDIR)/var/run
74 ln -snf /run/lock $(DESTDIR)/var/lock
75 # FHS compatibility symlinks stuff 86 # FHS compatibility symlinks stuff
76 ln -snf /var/tmp $(DESTDIR)/usr/tmp 87 ln -snf /var/tmp $(DESTDIR)/usr/tmp
77 88
78diststatus: 89diststatus:
79 @if [ -z "$(PV)" ] ; then \ 90 @if [ -z "$(PV)" ] ; then \

Legend:
Removed from v.3200  
changed lines
  Added in v.3201

  ViewVC Help
Powered by ViewVC 1.1.20