add Makefile

master 1.0
artoo 1 year ago
parent 413df18462
commit b0bb52c85a
  1. 55
      Makefile
  2. 0
      kmod/init.d/kmod-static-nodes
  3. 0
      sysusers/init.d/opensysusers
  4. 0
      tmpfiles/conf.d/opentmpfiles-dev
  5. 0
      tmpfiles/conf.d/opentmpfiles-setup
  6. 0
      tmpfiles/init.d/opentmpfiles-dev
  7. 0
      tmpfiles/init.d/opentmpfiles-setup
  8. 0
      udev/conf.d/udev
  9. 0
      udev/conf.d/udev-settle
  10. 0
      udev/conf.d/udev-trigger
  11. 0
      udev/init.d/udev
  12. 0
      udev/init.d/udev-settle
  13. 0
      udev/init.d/udev-trigger

@ -0,0 +1,55 @@
VERSION=1.0
SYSCONFDIR = /etc
KMOD_INITD = \
$(wildcard kmod/init.d/*)
SYSUSERS_INITD = \
$(wildcard sysusers/init.d/*)
TMPFILES_INITD = \
$(wildcard tmpfiles/init.d/*)
TMPFILES_CONFD = \
$(wildcard tmpfiles/conf.d/*)
UDEV_INITD = \
$(wildcard udev/init.d/*)
UDEV_CONFD = \
$(wildcard udev/conf.d/*)
DIRMODE = -dm0755
FILEMODE = -m0644
MODE = -m0755
LN = ln -snf
install:
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/conf.d
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/init.d
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/runlevels
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/runlevels/sysinit
install $(DIRMODE) $(DESTDIR)$(SYSCONFDIR)/runlevels/boot
install $(MODE) $(KMOD_INITD) $(DESTDIR)$(SYSCONFDIR)/init.d
$(LN) /etc/init.d/kmod-static-nodes $(DESTDIR)$(SYSCONFDIR)/runlevels/sysinit/kmod-static-nodes
install $(MODE) $(SYSUSERS_INITD) $(DESTDIR)$(SYSCONFDIR)/init.d
$(LN) /etc/init.d/opensysusers $(DESTDIR)$(SYSCONFDIR)/runlevels/boot/opensysusers
install $(FILEMODE) $(TMPFILES_CONFD) $(DESTDIR)$(SYSCONFDIR)/conf.d
install $(MODE) $(TMPFILES_INITD) $(DESTDIR)$(SYSCONFDIR)/init.d
$(LN) /etc/init.d/opentmpfiles-dev $(DESTDIR)$(SYSCONFDIR)/runlevels/sysinit/opentmpfiles-dev
$(LN) /etc/init.d/opentmpfiles-setup $(DESTDIR)$(SYSCONFDIR)/runlevels/boot/opentmpfiles-setup
install $(FILEMODE) $(UDEV_CONFD) $(DESTDIR)$(SYSCONFDIR)/conf.d
install $(MODE) $(UDEV_INITD) $(DESTDIR)$(SYSCONFDIR)/init.d
$(LN) /etc/init.d/udev $(DESTDIR)$(SYSCONFDIR)/runlevels/sysinit/udev
$(LN) /etc/init.d/udev-trigger $(DESTDIR)$(SYSCONFDIR)/runlevels/sysinit/udev-trigger
PHONY: install
Loading…
Cancel
Save