mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
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.
32 lines
727 B
Makefile
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
|