File graphthing-install-dir.patch of Package graphthing

--- GNUmakefile.in
+++ GNUmakefile.in
@@ -33,8 +33,8 @@
 	for subdir in $$dlist ; do \
 		(cd $$subdir && $(MAKE) install) ; \
 	done
-	@INSTALL@ -d @mandir@/man1/
-	@INSTALL@ -c -m 644 graphthing.1 @mandir@/man1/
+	@INSTALL@ -d $$DESTDIR@mandir@/man1/
+	@INSTALL@ -c -m 644 graphthing.1 $$DESTDIR@mandir@/man1/
 	@echo "---------------------------------------------------"
 	@echo "  GraphThing is now installed. It can be executed"
 	@echo "  by running:"
--- src/GNUmakefile.in
+++ src/GNUmakefile.in
@@ -37,8 +37,8 @@
 all:		$(PROGNAME) $(addsuffix @EXEEXT@,@EXTRA_PROGS@)
 
 install:
-	@INSTALL@ -d @prefix@/bin/
-	@INSTALL@ -s -m 755 $(PROGNAME) @prefix@/bin/
+	@INSTALL@ -d $$DESTDIR@prefix@/bin/
+	@INSTALL@ -s -m 755 $(PROGNAME) $$DESTDIR@prefix@/bin/
 
 clean:
 	rm -f $(ALL_OBJS) unit_test.o chrom.o
openSUSE Build Service is sponsored by