Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/run_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ jobs:
make install PREFIX=/usr CFG_DIR=/etc DESTDIR="${PWD}/ROOT"
find ROOT/ | sort | xargs -r ls -ld

- name: make uninstall
run: |-
set -x -o pipefail
make uninstall PREFIX=/usr CFG_DIR=/etc DESTDIR="${PWD}/ROOT"
find ROOT/ | sort | xargs -r ls -ld
diff -u0 <(echo 'total 0') <(ls -l ROOT/) # i.e. fail CI if leftovers

- name: make check
run: |-
set -x -o pipefail
Expand Down
28 changes: 1 addition & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# Make targets:
# - install: install LCOV tools and man pages on the system
# - uninstall: remove tools and man pages from the system
# - dist: create files required for distribution, i.e. the lcov.tar.gz
# and the lcov.rpm file. Just make sure to adjust the VERSION
# and RELEASE variables below - both version and date strings
Expand Down Expand Up @@ -93,14 +92,13 @@ else
.SILENT:
endif

.PHONY: all info clean install uninstall rpms test
.PHONY: all info clean install rpms test

all: info

info:
@echo "Available make targets:"
@echo " install : install binaries and man pages in DESTDIR (default /)"
@echo " uninstall : delete binaries and man pages from DESTDIR (default /)"
@echo " dist : create packages (RPM, tarball) ready for distribution"
@echo " check : perform self-tests"
@echo " checkstyle: check source files for coding style issues"
Expand Down Expand Up @@ -169,30 +167,6 @@ install:
$(INSTALL) -m 644 lcovrc $(CFG_INST_DIR)/lcovrc
$(call echocmd," done INSTALL")


uninstall:
for b in $(EXES) ; do \
$(call echocmd," UNINST $(BIN_INST_DIR)/$$b") \
$(RM) -f $(BIN_INST_DIR)/$$b ; \
done
rmdir --ignore-fail-on-non-empty $(BIN_INST_DIR) || true
for s in $(SCRIPTS) ; do \
$(call echocmd," UNINST $(SCRIPT_INST_DIR)/$$s") \
$(RM) -f $(SCRIPT_INST_DIR)/$$s ; \
done
rmdir --ignore-fail-on-non-empty $(SCRIPT_INST_DIR)
for l in $(LIBS) ; do \
$(call echocmd," UNINST $(LIB_INST_DIR)/$$l") \
$(RM) -f $(LIB_INST_DIR)/$$l ; \
done
rmdir --ignore-fail-on-non-empty $(LIB_INST_DIR) || true
rmdir `dirname $(LIB_INST_DIR)` || true
rm -rf `dirname $(SHARE_INST_DIR)`
$(call echocmd," UNINST $(CFG_INST_DIR)/lcovrc")
$(RM) -f $(CFG_INST_DIR)/lcovrc
rmdir --ignore-fail-on-non-empty $(CFG_INST_DIR) || true
rmdir --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX) || true

dist: lcov-$(VERSION).tar.gz lcov-$(VERSION)-$(RELEASE).noarch.rpm \
lcov-$(VERSION)-$(RELEASE).src.rpm

Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Further README contents
man - Directory containing man pages for included tools
example - Directory containing an example to demonstrate LCOV
tests - Directory containing lcov regression tests
Makefile - Makefile providing 'install' and 'uninstall' targets
Makefile - Makefile providing 'install', 'check' and other targets


2. Installing LCOV
Expand Down