- sys_unix.cpp: changed one #ifdef that should really have been an #if

- Makefile.in: provided uninstall target
This commit is contained in:
cebix 1999-10-03 17:45:08 +00:00
parent ce22e321b2
commit 65244bc22c
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,6 @@ exec_prefix=@exec_prefix@
bindir=$(exec_prefix)/bin
sharedir=$(prefix)/share/BasiliskII
mandir=$(prefix)/man
docdir=$(prefix)/doc/BasiliskII
CC = @CC@
CXX = @CXX@
@ -61,7 +60,13 @@ modules:
install: $(APP)
$(INSTALL_PROGRAM) BasiliskII $(bindir)/
$(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/
$(INSTALL_DATA) keycodes $(sharedir)/
$(INSTALL) -d $(sharedir)
$(INSTALL_DATA) keycodes $(sharedir)
uninstall:
-rm -f $(bindir)/BasiliskII
-rm -f $(mandir)/man1/BasiliskII.1
-rm -rf $(sharedir)
clean:
-rm -f $(OBJ_DIR)/* core* *.core *~ *.bak

View File

@ -581,7 +581,7 @@ void SysAllowRemoval(void *arg)
if (!fh)
return;
#ifdef defined(__linux__) && defined(CDROM_LOCKDOOR)
#if defined(__linux__) && defined(CDROM_LOCKDOOR)
if (fh->is_cdrom)
ioctl(fh->fd, CDROM_LOCKDOOR, 0);
#endif