diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-22 16:05:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-22 16:05:36 +0200 |
commit | c807bf78ae6e83700d8be6593739941c16840b29 (patch) | |
tree | 6cd27f9af524da2b9af2cdb5f3205bd1e2393744 /Makefile | |
parent | c63f9d9eed3c3571c84871d556ac464eabaea2fe (diff) |
Add Makefile & standard perl tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1879fd1 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +PREFIX ?= /usr/local + +main_dir = ${DESTDIR}${PREFIX} +bin_dir = ${main_dir}/bin +man_dir = ${main_dir}/share/man + +all: build/comirror.1 build/comirror-setup.1 + +build/%.1: bin/% + @echo POD $< + @mkdir -p build + @pod2man $< > $@ + +install: all + @echo Installing executables to ${bin_dir} + @echo Installing manuals to ${man_dir} + @mkdir -p ${bin_dir} ${man_dir}/man1 + @cp bin/comirror ${bin_dir}/comirror + @cp bin/comirror-setup ${bin_dir}/comirror-setup + @cp build/comirror.1 ${man_dir}/man1/comirror.1 + @cp build/comirror-setup.1 ${man_dir}/man1/comirror-setup.1 + @chmod 755 ${bin_dir}/comirror ${bin_dir}/comirror-setup + @chmod 644 ${man_dir}/man1/comirror.1 ${man_dir}/man1/comirror-setup.1 + +test: + @prove test + +uninstall: + rm -f ${bin_dir}/comirror ${bin_dir}/comirror-setup + rm -f ${man_dir}/man1/comirror.1 ${man_dir}/man1/comirror-setup.1 + +clean: + rm -rf build + +.PHONY: all clean install test uninstall |