diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-25 01:37:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-25 01:37:44 +0100 |
commit | 5defd3fdfe4ee5c953e2b64df5a8ce99dda58491 (patch) | |
tree | b548d38ecbbf1f63f2a7d7341e099deef5dfeb9f /Makefile | |
parent | fix some PASSPHRASE_MOVE errors and add DEBUG option (diff) | |
download | libpassphrase-5defd3fdfe4ee5c953e2b64df5a8ce99dda58491.tar.gz libpassphrase-5defd3fdfe4ee5c953e2b64df5a8ce99dda58491.tar.bz2 libpassphrase-5defd3fdfe4ee5c953e2b64df5a8ce99dda58491.tar.xz |
start on info manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 35 |
1 files changed, 31 insertions, 4 deletions
@@ -1,6 +1,9 @@ PREFIX = /usr LIB = /lib +DATA = /share INCLUDE = /include +LICENSES = $(DATA)/licenses +PKGNAME = libpassphrase OPTIONS = # PASSPHRASE_ECHO: Do not hide the passphrase @@ -28,9 +31,12 @@ OBJ = $(foreach S, $(SRC), obj/$(S).o) .PHONY: all -all: bin/libpassphrase.so +all: libpassphrase doc +.PHONY: libpassphrase +libpassphrase: bin/libpassphrase.so + bin/libpassphrase.so: $(OBJ) @mkdir -p bin $(CC) $(LD_FLAGS) -o "$@" $^ @@ -40,21 +46,42 @@ obj/%.o: src/%.c src/%.h $(CC) $(CC_FLAGS) -o "$@" -c "$<" +.PHONY: doc +doc: info + +.PHONY: info +info: libpassphrase.info.gz + +%.info: info/%.texinfo + makeinfo "$<" + +%.gz: % + gzip -9 < "$<" > "$@" + + .PHONY: install install: bin/libpassphrase.so install -dm755 -- "$(DESTDIR)$(PREFIX)$(LIB)" install -dm755 -- "$(DESTDIR)$(PREFIX)$(INCLUDE)" - install -m755 -- bin/libpassphrase.so "$(DESTDIR)$(PREFIX)$(LIB)" - install -m755 -- src/passphrase.h "$(DESTDIR)$(PREFIX)$(INCLUDE)" + install -m755 -- bin/libpassphrase.so "$(DESTDIR)$(PREFIX)$(LIB)" + install -m755 -- src/passphrase.h "$(DESTDIR)$(PREFIX)$(INCLUDE)" + install -dm755 -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" + install -m644 -- COPYING LICENSE "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" + install -dm755 -- "$(DESTDIR)$(PREFIX)$(DATA)/info" + install -m644 -- libpassphrase.info.gz "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" .PHONY: uninstall uninstall: -rm -- "$(DESTDIR)$(PREFIX)$(LIB)/libpassphrase.so" -rm -- "$(DESTDIR)$(PREFIX)$(INCLUDE)/passphrase.h" + -rm -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)/COPYING" + -rm -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)/LICENSE" + -rmdir -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" .PHONY: clean clean: - -rm -r bin obj + -rm -r bin obj libpassphrase.info.gz |