Standardizing Makefile install target name for service-mgmt/sm
Change-Id: I0b4a5aa7d498a49550c5890a79d7ff8edeae148d Story: 2004043 Task: 27540 Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
This commit is contained in:
parent
729a8e7f36
commit
3d478b6e27
@ -6,7 +6,7 @@
|
|||||||
build:
|
build:
|
||||||
@(cd src; make build )
|
@(cd src; make build )
|
||||||
|
|
||||||
install_non_bb:
|
install:
|
||||||
@(cd src; make $@)
|
@(cd src; make $@)
|
||||||
@(cd scripts; make $@)
|
@(cd scripts; make $@)
|
||||||
|
|
||||||
|
@ -59,10 +59,10 @@ MAJOR=`echo $VER | awk -F . '{print $1}'`
|
|||||||
make -j"%(nproc)"
|
make -j"%(nproc)"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
VER=%{version}
|
VER=%{version}
|
||||||
MAJOR=`echo $VER | awk -F . '{print $1}'`
|
MAJOR=`echo $VER | awk -F . '{print $1}'`
|
||||||
make DEST_DIR=$RPM_BUILD_ROOT UNIT_DIR=%{_unitdir} install_non_bb
|
make DEST_DIR=%{buildroot} UNIT_DIR=%{_unitdir} install
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/usr/bin/systemctl enable sm.service >/dev/null 2>&1
|
/usr/bin/systemctl enable sm.service >/dev/null 2>&1
|
||||||
@ -81,19 +81,3 @@ make DEST_DIR=$RPM_BUILD_ROOT UNIT_DIR=%{_unitdir} install_non_bb
|
|||||||
"/etc/init.d/sm-shutdown"
|
"/etc/init.d/sm-shutdown"
|
||||||
"/etc/pmon.d/sm.conf"
|
"/etc/pmon.d/sm.conf"
|
||||||
"/etc/logrotate.d/sm.logrotate"
|
"/etc/logrotate.d/sm.logrotate"
|
||||||
|
|
||||||
#%files -n sm-dbg
|
|
||||||
#%defattr(-,-,-,-)
|
|
||||||
#%dir "/usr"
|
|
||||||
#%dir "/usr/bin"
|
|
||||||
#%dir "/usr/src"
|
|
||||||
#%dir "/usr/bin/.debug"
|
|
||||||
#"/usr/bin/.debug/sm"
|
|
||||||
#%dir "/usr/src/debug"
|
|
||||||
#%dir "/usr/src/debug/sm"
|
|
||||||
#%dir "/usr/src/debug/sm/1.0.0-r10"
|
|
||||||
#%dir "/usr/src/debug/sm/1.0.0-r10/src"
|
|
||||||
#/usr/src/debug/sm/1.0.0-r10/src/*.c
|
|
||||||
#/usr/src/debug/sm/1.0.0-r10/src/*.h
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
install_non_bb:
|
install:
|
||||||
install -d ${DEST_DIR}/etc/init.d
|
install -d ${DEST_DIR}/etc/init.d
|
||||||
install sm ${DEST_DIR}/etc/init.d/sm
|
install sm ${DEST_DIR}/etc/init.d/sm
|
||||||
install sm.shutdown ${DEST_DIR}/etc/init.d/sm-shutdown
|
install sm.shutdown ${DEST_DIR}/etc/init.d/sm-shutdown
|
||||||
|
@ -130,7 +130,7 @@ LDFLAGS = -rdynamic
|
|||||||
build: $(OBJS)
|
build: $(OBJS)
|
||||||
$(CXX) $(CCFLAGS) $(EXTRACCFLAGS) $(OBJS) ${LDFLAGS} $(LDLIBS) -o sm
|
$(CXX) $(CCFLAGS) $(EXTRACCFLAGS) $(OBJS) ${LDFLAGS} $(LDLIBS) -o sm
|
||||||
|
|
||||||
install_non_bb:
|
install:
|
||||||
install -d 755 ${DEST_DIR}/usr/bin
|
install -d 755 ${DEST_DIR}/usr/bin
|
||||||
install -m 755 sm ${DEST_DIR}/usr/bin/sm
|
install -m 755 sm ${DEST_DIR}/usr/bin/sm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user