diff options
author | Lukas Fleischer <info@cryptocrack.de> | 2011-05-10 22:02:14 +0200 |
---|---|---|
committer | Lukas Fleischer <info@cryptocrack.de> | 2011-05-10 22:02:14 +0200 |
commit | bb9b292a41969a59a384ddd6ada00c9c9e0cd1f8 (patch) | |
tree | ff72ef18bd7b5f4a9e1b8cb8f25b97fd52a45b3c | |
parent | 9763cdebd26e76f2742cda6ae85a331c9a17dbb2 (diff) | |
download | faketime-ng-bb9b292a41969a59a384ddd6ada00c9c9e0cd1f8.tar.gz |
Use a separate Makefile for meta files.
* Create separate "install" and "uninstall" targets for meta files.
* Add meta file targets to the shortcut Makefile.
Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | meta/Makefile | 15 | ||||
-rw-r--r-- | src/Makefile | 6 |
3 files changed, 17 insertions, 6 deletions
@@ -8,10 +8,12 @@ test: install: $(MAKE) -C src install $(MAKE) -C man install + $(MAKE) -C meta install uninstall: $(MAKE) -C src uninstall $(MAKE) -C man uninstall + $(MAKE) -C meta uninstall clean: $(MAKE) -C src clean diff --git a/meta/Makefile b/meta/Makefile new file mode 100644 index 0000000..d7a4b3c --- /dev/null +++ b/meta/Makefile @@ -0,0 +1,15 @@ +PREFIX = /usr/local + +all: + +install: + -mkdir -p "${DESTDIR}${PREFIX}/share/doc/faketime" + cp ../README "${DESTDIR}${PREFIX}/share/doc/faketime/README" + cp Changelog "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog" + +uninstall: + rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README" + rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog" + rmdir "${DESTDIR}${PREFIX}/share/doc/faketime" + +.PHONY: all install uninstall diff --git a/src/Makefile b/src/Makefile index f8f5800..54dcfa1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -75,16 +75,10 @@ install: ${LIBS} -mkdir -p "${DESTDIR}${PREFIX}/lib/faketime" cp ${LIBS} "${DESTDIR}${PREFIX}/lib/faketime" cp faketime "${DESTDIR}${PREFIX}/bin" - -mkdir -p "${DESTDIR}${PREFIX}/share/doc/faketime" - cp README "${DESTDIR}${PREFIX}/share/doc/faketime/README" - cp Changelog "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog" uninstall: for f in ${LIBS}; do rm -f "${DESTDIR}${PREFIX}/lib/faketime/$$f"; done rmdir "${DESTDIR}${PREFIX}/lib/faketime" rm -f "${DESTDIR}${PREFIX}/bin/faketime" - rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README" - rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog" - rmdir "${DESTDIR}${PREFIX}/share/doc/faketime" .PHONY: all clean distclean install uninstall |