1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

[PATCH] tweak the config file generation portion of the Makefile a bit.

This commit is contained in:
greg@kroah.com 2003-12-11 08:12:29 -08:00 committed by Greg KH
parent 18a0d6522d
commit 71896b56ee

View File

@ -203,6 +203,14 @@ udev_version.h:
@echo \#define UDEV_RULES_FILE \"$(configdir)\udev.rules\" >> $@ @echo \#define UDEV_RULES_FILE \"$(configdir)\udev.rules\" >> $@
@echo \#define UDEV_PERMISSION_FILE \"$(configdir)\udev.permissions\" >> $@ @echo \#define UDEV_PERMISSION_FILE \"$(configdir)\udev.permissions\" >> $@
# config files automatically generated
GEN_CONFIGS = udev.conf
# Rules on how to create the generated config files
udev.conf:
sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > $@
$(OBJS): $(GEN_HEADERS) $(OBJS): $(GEN_HEADERS)
$(ROOT): $(OBJS) $(ROOT): $(OBJS)
@ -212,7 +220,7 @@ $(ROOT): $(OBJS)
clean: clean:
-find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print \ -find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print \
| xargs rm -f | xargs rm -f
-rm -f core $(ROOT) $(GEN_HEADERS) udev.conf -rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS)
$(MAKE) -C klibc clean $(MAKE) -C klibc clean
@for target in $(EXTRAS) ; do \ @for target in $(EXTRAS) ; do \
echo $$target ; \ echo $$target ; \
@ -265,13 +273,12 @@ uninstall-dbus-policy:
- -
endif endif
install: install-dbus-policy all install: install-dbus-policy all $(GEN_CONFIGS)
$(INSTALL) -d $(DESTDIR)$(udevdir) $(INSTALL) -d $(DESTDIR)$(udevdir)
$(INSTALL) -d $(DESTDIR)$(configdir) $(INSTALL) -d $(DESTDIR)$(configdir)
$(INSTALL) -d $(DESTDIR)$(hotplugdir) $(INSTALL) -d $(DESTDIR)$(hotplugdir)
$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT) $(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8 $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > udev.conf
$(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir) $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir)
$(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir) $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir)
$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir) $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)