Skip to content

Commit

Permalink
Cleaned ifeq for dkms check. Caused issues in RHEL/CentOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutoupis committed Jan 12, 2020
1 parent a124b0e commit 302c155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ uninstall:
depmod -a depmod -a


clean: clean:
rm -rf *.o *.ko *.symvers *.mod.c .*.cmd Module.markers modules.order *.o.* rm -rf *.o *.ko *.symvers *.mod.c .*.cmd Module.markers modules.order *.o.* built-in*
rm -rf .tmp_versions .rapiddisk.o.d *.unsigned *.sdtinfo.c .ctf/ .cache.mk rm -rf .tmp_versions .rapiddisk.o.d *.unsigned *.sdtinfo.c .ctf/ .cache.mk


dkms-install: dkms-install:
ifeq (, $(shell which dkms)) ifeq ($(shell which dkms 1>&2 2>/dev/null; echo $$?),1)
$(error "No dkms.") $(error "No dkms.")
else else
ifeq ($(shell dkms status rapiddisk/$(VERSION) -k $(KVER) | grep '$(KVER)' >/dev/null && echo 0 || echo 1 ),0) ifeq ($(shell dkms status rapiddisk/$(VERSION) -k $(KVER) | grep '$(KVER)' >/dev/null && echo 0 || echo 1 ),0)
Expand All @@ -65,7 +65,7 @@ endif
endif endif


dkms-uninstall: dkms-uninstall:
ifeq (, $(shell which dkms)) ifeq ($(shell which dkms 1>&2 2>/dev/null; echo $$?),1)
$(error "No dkms.") $(error "No dkms.")
else else
ifeq ($(shell dkms status rapiddisk/$(VERSION) -k $(KVER) | grep '$(KVER)' >/dev/null && echo 0 || echo 1 ),0) ifeq ($(shell dkms status rapiddisk/$(VERSION) -k $(KVER) | grep '$(KVER)' >/dev/null && echo 0 || echo 1 ),0)
Expand Down

0 comments on commit 302c155

Please sign in to comment.