man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
-docdir = $(prefix)/share/doc/ucsim
+#docdir = $(prefix)/share/doc/ucsim
+docdir = @docdir@/ucsim
# Compiling entire program or any subproject
# Compiling and installing everything and runing test
# ---------------------------------------------------
install: all installdirs
- cp *.html $(docdir)
- cp *.gif $(docdir)
- cp *.jpg $(docdir)
- cp *.fig $(docdir)
+ cp *.html $(DESTDIR)$(docdir)
+ cp *.gif $(DESTDIR)$(docdir)
+ cp *.jpg $(DESTDIR)$(docdir)
+ cp *.fig $(DESTDIR)$(docdir)
# Deleting all the installed files
# --------------------------------
uninstall:
- rm -f $(docdir)/*
+ rm -rf $(DESTDIR)$(docdir)
# Performing self-test
# Creating installation directories
# ---------------------------------
installdirs:
- test -d $(docdir) || $(INSTALL) -d $(docdir)
+ test -d $(DESTDIR)$(docdir) || $(INSTALL) -d $(DESTDIR)$(docdir)
# Creating dependencies