mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 08:34:50 +02:00
use DIST variable to see if el7
This commit is contained in:
parent
975e55412b
commit
a24945ac82
2
makefile
2
makefile
@ -21,7 +21,7 @@ all: default
|
||||
install:
|
||||
mkdir -p $(DESTDIR)/usr/share/cockpit/
|
||||
cp -rpf navigator $(DESTDIR)/usr/share/cockpit
|
||||
ifeq ($(EL7),1)
|
||||
ifeq ($(DIST),"el7")
|
||||
sed -i "s/pf-c-button/btn/g;s/pf-m-primary/btn-primary/g;s/pf-m-secondary/btn-default/g;s/pf-m-danger/btn-danger/g" $(DESTDIR)/usr/share/cockpit/navigator/navigator.html
|
||||
endif
|
||||
|
||||
|
@ -21,9 +21,7 @@ A File System Browser for Cockpit.
|
||||
# empty
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}
|
||||
cp -a * %{buildroot}
|
||||
make DESTDIR=%{buildroot} DIST=%{dist} install
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
Loading…
x
Reference in New Issue
Block a user