.PHONY: install
install: all
- @if [ `id -u` != 0 ]; then \
+ @if [ `id -u` != 0 ]; then \
echo ""; \
- echo 'Do "make install" as root'; \
+ echo 'Do "make install" as root'; \
echo ""; \
false; \
fi
- @$(MKDIR) -p $(BINDIR) $(CC65DOC) $(CC65LIB)/{asminc,emd,include/{em,geos,joystick,sys,tgi},joy,lib,ser,tgi}
+ @$(MKDIR) -p $(BINDIR) $(CC65DOC) $(CC65LIB)/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}
@$(INSTALL) -s -m 755 src/ar65/ar65 $(BINDIR)
@$(INSTALL) -s -m 755 src/ca65/ca65 $(BINDIR)
@$(INSTALL) -m 755 src/ca65html/ca65html $(BINDIR)
@$(INSTALL) -m 644 include/geos/*.h $(CC65INC)/geos
@$(INSTALL) -m 644 include/em/*.h $(CC65INC)/em
@$(INSTALL) -m 644 include/joystick/*.h $(CC65INC)/joystick
+ @$(INSTALL) -m 644 include/mouse/*.h $(CC65INC)/mouse
@$(INSTALL) -m 644 include/sys/*.h $(CC65INC)/sys
@$(INSTALL) -m 644 include/tgi/*.h $(CC65INC)/tgi
@$(INSTALL) -m 644 asminc/*.inc $(CC65DATA)/asminc
%install
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,sys,tgi},joy,lib,ser,tgi}}
+mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
# Binaries
install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
+install -m 644 include/mouse/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/mouse
install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc