diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 20:47:10 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 20:47:10 +0200 |
commit | 60588d19ffd2accefe1d16018cde20eae39b9a7f (patch) | |
tree | 16a8c2f3eefc4c780c45dfb4fb6aa17285119259 | |
parent | 4d5e8381a6b41e734756e30c11e9a494e5923a0b (diff) | |
download | outils-60588d19ffd2accefe1d16018cde20eae39b9a7f.tar.gz outils-60588d19ffd2accefe1d16018cde20eae39b9a7f.tar.xz outils-60588d19ffd2accefe1d16018cde20eae39b9a7f.zip |
add make install
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 5ea00b6..218abe3 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ LDFLAGS=-Wl,--as-needed -lcrypto %: %.o $(CC) -o $@ $^ $(LDFLAGS) -all: src/usr.bin/apply/apply src/usr.bin/jot/jot src/usr.bin/lam/lam src/usr.bin/lndir/lndir src/bin/md5/md5 src/usr.bin/rs/rs src/usr.bin/gzsig/gzsig src/usr.bin/signify/signify src/usr.bin/calendar/calendar src/usr.bin/vis/vis src/usr.bin/unvis/unvis +ALL=src/usr.bin/apply/apply src/usr.bin/jot/jot src/usr.bin/lam/lam src/usr.bin/lndir/lndir src/bin/md5/md5 src/usr.bin/rs/rs src/usr.bin/gzsig/gzsig src/usr.bin/signify/signify src/usr.bin/calendar/calendar src/usr.bin/vis/vis src/usr.bin/unvis/unvis +all: $(ALL) src/usr.bin/apply/apply: src/usr.bin/apply/apply.o src/liboutils/strlcpy.o @@ -31,3 +32,14 @@ src/usr.bin/unvis/unvis: src/usr.bin/unvis/unvis.o src/liboutils/unvis.o clean: rm -f src/*/*/*.o + +DESTDIR= +PREFIX=/usr + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 + install -m755 $(ALL) $(DESTDIR)$(PREFIX)/bin + install -m644 src/*/*/*.1 $(DESTDIR)$(PREFIX)/share/man/man1 + +install-calendars: + cp -r src/usr.bin/calendar/calendars $(DESTDIR)$(PREFIX)/share/calendar |