diff options
author | Wolfgang Hommel <wolfcw@users.noreply.github.com> | 2019-11-30 09:36:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-30 09:36:46 +0100 |
commit | 3123ad7fe2838797e2b4081dc9d5786b8a8c4ed3 (patch) | |
tree | d8d4f1cb4e3a002dcdb1055f6509b9482e3e8248 /Makefile | |
parent | af2d2e5111e0e23fc80b2a838b692c597fb8d6a7 (diff) | |
download | libfaketime-3123ad7fe2838797e2b4081dc9d5786b8a8c4ed3.tar.gz |
Revert "Automake branch"revert-178-automake-branch
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..3d89a7a --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +INSTALL ?= install + +UNAME=$(shell uname) +SELECTOR:=$(shell if test "${UNAME}" = "Darwin" ; then echo "-f Makefile.OSX" ; fi) + +all: + $(MAKE) $(SELECTOR) -C src all + +test: + $(MAKE) $(SELECTOR) -C src all + $(MAKE) $(SELECTOR) -C test all + +install: + $(MAKE) $(SELECTOR) -C src install + $(MAKE) $(SELECTOR) -C man install + $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/share/doc/faketime/" + $(INSTALL) -m0644 README "${DESTDIR}${PREFIX}/share/doc/faketime/README" + $(INSTALL) -m0644 NEWS "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS" + +uninstall: + $(MAKE) $(SELECTOR) -C src uninstall + $(MAKE) $(SELECTOR) -C man uninstall + rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README" + rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS" + rmdir "${DESTDIR}${PREFIX}/share/doc/faketime" + +clean: + $(MAKE) $(SELECTOR) -C src clean + $(MAKE) $(SELECTOR) -C test clean + +distclean: + $(MAKE) $(SELECTOR) -C src distclean + $(MAKE) $(SELECTOR) -C test distclean + +.PHONY: all test install uninstall clean distclean |