Description: play with git
 New upstream; package under git.
 .
 gprolog (1.4.5-1) unstable; urgency=medium
 .
   * Initial git-based package overhaul: now forked from the GNU Prolog git
     repo (closes: #661739, #705740, #618280)
   * Much simplified patches, we're basically sticking to upstream now.
   * Bug fix: "please don't randomly compress examples", thanks to
     Andrew Shadura (Closes: #674576).
   * Bug fix: "manpage refers to non-existing documentation file", thanks
     to Michael Stapelberg (Closes: #671924).
   * Bug fix: "GNU Prolog Docs should be in section Programming/Prolog",
     thanks to Ralf Treinen (Closes: #505670).
   * Bug fix: "diff for NMU version 1.3.0-6.2", thanks to Andrey
     Rahmatullin (Closes: #846516).
Author: Salvador Abreu <spa@debian.org>
Bug-Debian: https://bugs.debian.org/505670
Bug-Debian: https://bugs.debian.org/618280
Bug-Debian: https://bugs.debian.org/661739
Bug-Debian: https://bugs.debian.org/671924
Bug-Debian: https://bugs.debian.org/674576
Bug-Debian: https://bugs.debian.org/705740
Bug-Debian: https://bugs.debian.org/846516

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2016-12-06

--- gprolog-1.4.5.orig/src/Makefile.in
+++ gprolog-1.4.5/src/Makefile.in
@@ -58,27 +58,31 @@ install-strip:
 install: install-system install-doc install-html install-examples install-links
 
 install-system:
-	./mkinstalldirs $(INSTALL_DIR) $(INSTALL_DIR)/bin \
-	$(INSTALL_DIR)/include $(INSTALL_DIR)/lib
+	./mkinstalldirs				\
+		$(INSTALL_DIR)			\
+		$(INSTALL_BIN)			\
+		$(INSTALL_INC)			\
+		$(INSTALL_LIB)
 	for i in $(TXT_FILES); do $(INSTALL_DATA) ../$$i $(INSTALL_DIR); done
-	for i in $(BIN_FILES); do $(INSTALL_PROGRAM) */$$i $(INSTALL_DIR)/bin; done
-	for i in $(OBJ_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
-	for i in $(LIB_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_DIR)/lib; done
-	for i in $(INC_FILES); do EnginePl/cpp_headers $$i ./$$i EnginePl EngineFD BipsPl BipsFD; $(INSTALL_DATA) ./$$i $(INSTALL_DIR)/include; rm -f $$i; done
-	(cd $(INSTALL_DIR)/lib; for i in *.a; do $(RANLIB) $$i; done)
+	for i in $(BIN_FILES); do $(INSTALL_PROGRAM) */$$i $(INSTALL_BIN); done
+	for i in $(OBJ_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_LIB); done
+	for i in $(LIB_FILES); do $(INSTALL_DATA) */$$i $(INSTALL_LIB); done
+	for i in $(INC_FILES); do				\
+		EnginePl/cpp_headers $$i ./$$i			\
+			EnginePl EngineFD BipsPl BipsFD;	\
+		$(INSTALL_DATA) ./$$i $(INSTALL_INC);		\
+		rm -f $$i;					\
+	done
+	(cd $(INSTALL_LIB); for i in *.a; do $(RANLIB) $$i; done)
 
 
 uninstall: uninstall-links uninstall-html uninstall-doc uninstall-examples
-	for i in $(BIN_FILES); do rm -f $(INSTALL_DIR)/bin/$$i; done
-	rmdir -p $(INSTALL_DIR)/bin 2>/dev/null || exit 0
-	for i in $(LIB_FILES) $(OBJ_FILES); do rm -f $(INSTALL_DIR)/lib/$$i; done
-	rmdir -p $(INSTALL_DIR)/lib 2>/dev/null || exit 0
-	for i in $(INC_FILES); do rm -f $(INSTALL_DIR)/include/$$i; done
-	rmdir -p $(INSTALL_DIR)/include 2>/dev/null || exit 0
+	for i in $(BIN_FILES); do rm -f $(INSTALL_BIN)/$$i; done
+	for i in $(LIB_FILES) $(OBJ_FILES); do rm -f $(INSTALL_LIB)/$$i; done
+	for i in $(INC_FILES); do rm -f $(INSTALL_INC)/$$i; done
 	for i in $(TXT_FILES); do rm -f $(INSTALL_DIR)/$$i; done
 	rmdir $(INSTALL_DIR) 2>/dev/null || exit 0
 
-
 # --- Links --- #
 
 install-links: uninstall-links
