summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-07 19:31:50 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-07 19:31:50 +0100
commite87e368e39b77775065478825582e0265d0487f9 (patch)
tree513c7a192facac84d610898a75bcb057dc3d9d38
parent868d5946e93456c2803510ba1d69944d48cb02b3 (diff)
Add Makefile and INSTALL file
-rw-r--r--.gitignore1
-rw-r--r--INSTALL4
-rw-r--r--Makefile23
3 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..84c048a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/build/
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..129e2c0
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,4 @@
+$ make
+# make install
+
+Requires the Image::Imlib2 perl module.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e04745
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+prefix = /usr/local
+
+default: build/gen-xhtml-thumbnails.1
+
+build/%.1: bin/%
+ mkdir -p build
+ pod2man $< > $@
+
+install: build/gen-xhtml-thumbnails.1
+ mkdir -p $(prefix)/bin $(prefix)/share/man/man1
+ cp bin/gen-xhtml-thumbnails $(prefix)/bin/gen-xhtml-thumbnails
+ cp build/gen-xhtml-thumbnails.1 $(prefix)/share/man/man1/gen-xhtml-thumbnails.1
+ chmod 755 $(prefix)/bin/gen-xhtml-thumbnails
+ chmod 644 $(prefix)/share/man/man1/gen-xhtml-thumbnails.1
+
+uninstall:
+ rm -f $(prefix)/bin/gen-xhtml-thumbnails
+ rm -f $(prefix)/share/man/man1/gen-xhtml-thumbnails.1
+
+clean:
+ rm -rf build
+
+.PHONY: install uninstall clean