summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkhali <khali>2005-03-25 18:42:36 +0000
committerkhali <khali>2005-03-25 18:42:36 +0000
commit3bc1e4e0b819e996877fbb905499e6be7929e837 (patch)
tree32e7dd1d9731d6783baa72e482e045970712e42d /Makefile
parentada2de0bb7dcee87b1c613e2e70de7bc959c2ec1 (diff)
downloaddmidecode-3bc1e4e0b819e996877fbb905499e6be7929e837.tar.gz
Install some documentation files (README, CHANGELOG, AUTHORS).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 30 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 9c8b7c6..5e641b3 100644
--- a/Makefile
+++ b/Makefile
@@ -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