Skip to content

Instantly share code, notes, and snippets.

@false-git
Created May 7, 2013 13:22
Show Gist options
  • Save false-git/5532513 to your computer and use it in GitHub Desktop.
Save false-git/5532513 to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index c282d3b..9b607dd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+CFLAGS += -I/usr/local/include -L/usr/local/lib
+
all: urftopdf
urftopdf:urftopdf.c unirast.h
diff --git a/install_pdf.sh b/install_pdf.sh
index ae70549..d61a11c 100755
--- a/install_pdf.sh
+++ b/install_pdf.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-[ ! -d $DESTDIR/usr/share/cups/mime ] && mkdir -p $DESTDIR/usr/share/cups/mime
-cp urftopdf.types $DESTDIR/usr/share/cups/mime
-cp urftopdf.convs $DESTDIR/usr/share/cups/mime
-[ ! -d $DESTDIR/usr/lib/cups/filter ] && mkdir -p $DESTDIR/usr/lib/cups/filter
-cp urftopdf $DESTDIR/usr/lib/cups/filter
+cp urftopdf.types /usr/local/share/cups/mime
+cp urftopdf.convs /usr/local/share/cups/mime
+cp urftopdf /usr/local/libexec/cups/filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment