mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
Makefile: Add installcheck target to check installation procedure.
This commit is contained in:
parent
c572c3bbee
commit
bba8a3cab7
1 changed files with 14 additions and 1 deletions
15
Makefile
15
Makefile
|
@ -178,6 +178,7 @@ TEST_GROUP_COUNT=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
$(MAKE) installcheck
|
||||||
$(MAKE) pytest
|
$(MAKE) pytest
|
||||||
|
|
||||||
pytest: $(ALL_PROGRAMS)
|
pytest: $(ALL_PROGRAMS)
|
||||||
|
@ -393,7 +394,19 @@ uninstall:
|
||||||
rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: installdirs install-program install-data install uninstall
|
installcheck:
|
||||||
|
@rm -rf testinstall || true
|
||||||
|
$(MAKE) DESTDIR=testinstall install
|
||||||
|
testinstall$(bindir)/lightningd --test-daemons-only --lightning-dir=testinstall
|
||||||
|
$(MAKE) DESTDIR=testinstall uninstall
|
||||||
|
@if test `find testinstall '!' -type d | wc -l` -ne 0; then \
|
||||||
|
echo 'make uninstall left some files in testinstall directory!'; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
@rm -rf testinstall || true
|
||||||
|
|
||||||
|
.PHONY: installdirs install-program install-data install uninstall \
|
||||||
|
installcheck
|
||||||
|
|
||||||
ccan-breakpoint.o: $(CCANDIR)/ccan/breakpoint/breakpoint.c
|
ccan-breakpoint.o: $(CCANDIR)/ccan/breakpoint/breakpoint.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
Loading…
Add table
Reference in a new issue