1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 23:21:08 +03:00

EXTRAS/Makefile: fix install targets to match main Makefile

This commit is contained in:
Jürg Billeter 2005-09-14 14:27:28 +02:00 committed by Kay Sievers
parent 8c65c6a1be
commit 1ac216b198
11 changed files with 38 additions and 21 deletions

View File

@ -333,6 +333,10 @@ install-config: $(GEN_CONFIGS)
echo "pick a udev rules file from the etc/udev directory that matches your distribution"; \
echo; \
fi
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
$(MAKE) prefix=$(prefix) -C $$target $@; \
done;
.PHONY: install-config
install-man:
@ -344,6 +348,10 @@ install-man:
$(INSTALL_DATA) -D udevsend.8 $(DESTDIR)$(mandir)/man8/udevsend.8
$(INSTALL_DATA) -D udevmonitor.8 $(DESTDIR)$(mandir)/man8/udevmonitor.8
- ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevcontrol.8
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
$(MAKE) prefix=$(prefix) -C $$target $@; \
done;
.PHONY: install-man
uninstall-man:
@ -355,6 +363,10 @@ uninstall-man:
- rm $(mandir)/man8/udevmonitor.8
- rm $(mandir)/man8/udevsend.8
- rm $(mandir)/man8/udevcontrol.8
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
$(MAKE) prefix=$(prefix) -C $$target $@; \
done;
.PHONY: uninstall-man
install-bin:

View File

@ -43,8 +43,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -44,8 +44,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -43,8 +43,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -43,8 +43,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -44,8 +44,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -43,8 +43,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -45,9 +45,9 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(DEVD) $(DESTDIR)$(sbindir)/$(DEVD)
$(INSTALL_PROGRAM) $(HOTPLUGD) $(DESTDIR)$(sbindir)/$(HOTPLUGD)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(DEVD)

View File

@ -46,18 +46,23 @@ all: $(PROG)
# XXX use a compressed man page?
install: all
install-bin: all
$(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
install-man:
$(INSTALL_DATA) -D scsi_id.8 $(DESTDIR)$(mandir)/man8/scsi_id.8
install-config:
@if [ ! -r $(DESTDIR)$(etcdir)/scsi_id.config ]; then \
echo $(INSTALL_DATA) -D ./scsi_id.config $(DESTDIR)$(etcdir); \
$(INSTALL_DATA) -D ./scsi_id.config $(DESTDIR)$(etcdir)/scsi_id.config; \
fi
uninstall:
uninstall-bin:
-rm $(DESTDIR)$(sbindir)/$(PROG)
uninstall-man:
-rm $(DESTDIR)$(mandir)/man8/scsi_id.8
-rm $(DESTDIR)$(etcdir)/scsi_id.config
GEN_HEADER=scsi_id_version.h

View File

@ -44,8 +44,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)

View File

@ -47,8 +47,8 @@ clean:
spotless: clean
install: all
install-bin: all
$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall-bin:
- rm $(DESTDIR)$(sbindir)/$(PROG)