Files
libfaketime/Makefile
Daniel Kahn Gillmor 02a0a3b231 separate the testing step from the build step
There are circumstances where you just want to repeat the build
without running the tests.  keeping the "test" target distinct from
the "all" target makes it possible to do that cleanly.
2013-06-11 10:23:05 -04:00

32 lines
727 B
Makefile

INSTALL ?= install
all:
$(MAKE) -C src all
test:
$(MAKE) -C test all
install:
$(MAKE) -C src install
$(MAKE) -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) -C src uninstall
$(MAKE) -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) -C src clean
$(MAKE) -C test clean
distclean:
$(MAKE) -C src distclean
$(MAKE) -C test distclean
.PHONY: all test install uninstall clean distclean