diff options
author | khali <khali> | 2005-03-25 18:42:36 +0000 |
---|---|---|
committer | khali <khali> | 2005-03-25 18:42:36 +0000 |
commit | 3bc1e4e0b819e996877fbb905499e6be7929e837 (patch) | |
tree | 32e7dd1d9731d6783baa72e482e045970712e42d /Makefile | |
parent | ada2de0bb7dcee87b1c613e2e70de7bc959c2ec1 (diff) | |
download | dmidecode-3bc1e4e0b819e996877fbb905499e6be7929e837.tar.gz |
Install some documentation files (README, CHANGELOG, AUTHORS).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 30 insertions, 7 deletions
@@ -26,6 +26,7 @@ prefix = /usr/local sbindir = $(prefix)/sbin mandir = $(prefix)/share/man man8dir = $(mandir)/man8 +docdir = $(prefix)/share/doc/dmidecode all : dmidecode biosdecode ownership vpddecode @@ -71,22 +72,44 @@ util.o : util.c types.h util.h config.h strip : all strip dmidecode biosdecode ownership vpddecode -install : all - install -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir) +install : install-bin install-man install-doc + +uninstall : uninstall-bin uninstall-man uninstall-doc + +install-bin : all + install -d $(DESTDIR)$(sbindir) install -m 755 dmidecode $(DESTDIR)$(sbindir) install -m 755 biosdecode $(DESTDIR)$(sbindir) install -m 755 ownership $(DESTDIR)$(sbindir) install -m 755 vpddecode $(DESTDIR)$(sbindir) + +uninstall-bin : + rm -f $(DESTDIR)$(sbindir)/dmidecode + rm -f $(DESTDIR)$(sbindir)/biosdecode + rm -f $(DESTDIR)$(sbindir)/ownership + rm -f $(DESTDIR)$(sbindir)/vpddecode + +install-man : + install -d $(DESTDIR)$(man8dir) install -m 644 man/dmidecode.8 $(DESTDIR)$(man8dir) install -m 644 man/biosdecode.8 $(DESTDIR)$(man8dir) install -m 644 man/ownership.8 $(DESTDIR)$(man8dir) install -m 644 man/vpddecode.8 $(DESTDIR)$(man8dir) -uninstall : - rm -f $(DESTDIR)$(sbindir)/dmidecode $(DESTDIR)$(man8dir)/dmidecode.8 - rm -f $(DESTDIR)$(sbindir)/biosdecode $(DESTDIR)$(man8dir)/biosdecode.8 - rm -f $(DESTDIR)$(sbindir)/ownership $(DESTDIR)$(man8dir)/ownership.8 - rm -f $(DESTDIR)$(sbindir)/vpddecode $(DESTDIR)$(man8dir)/vpddecode.8 +uninstall-man : + rm -f $(DESTDIR)$(man8dir)/dmidecode.8 + rm -f $(DESTDIR)$(man8dir)/biosdecode.8 + rm -f $(DESTDIR)$(man8dir)/ownership.8 + rm -f $(DESTDIR)$(man8dir)/vpddecode.8 + +install-doc : + install -d $(DESTDIR)$(docdir) + install -m 644 README $(DESTDIR)$(docdir) + install -m 644 CHANGELOG $(DESTDIR)$(docdir) + install -m 644 AUTHORS $(DESTDIR)$(docdir) + +uninstall-doc : + rm -rf $(DESTDIR)$(docdir) clean : rm -f *.o dmidecode biosdecode ownership vpddecode core |