11 |
|
mandir = @mandir@ |
12 |
|
man1dir = $(mandir)/man1 |
13 |
|
|
14 |
+ |
DESTDIR = |
15 |
+ |
|
16 |
|
CC = @CC@ |
17 |
|
CXX = @CXX@ |
18 |
|
CFLAGS = @CFLAGS@ |
39 |
|
APP = BasiliskII |
40 |
|
|
41 |
|
## Rules |
42 |
< |
.PHONY: modules install uninstall clean distclean depend dep |
42 |
> |
.PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep |
43 |
|
.SUFFIXES: |
44 |
|
.SUFFIXES: .c .cpp .s .o .h |
45 |
|
|
66 |
|
cd Linux/NetDriver; make |
67 |
|
|
68 |
|
install: $(APP) installdirs |
69 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
70 |
< |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
71 |
< |
$(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes |
72 |
< |
$(INSTALL_DATA) fbdevices $(datadir)/$(APP)/fbdevices |
69 |
> |
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP) |
70 |
> |
-$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1 |
71 |
> |
$(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes |
72 |
> |
$(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices |
73 |
|
|
74 |
|
installdirs: |
75 |
< |
$(SHELL) mkinstalldirs $(bindir) $(man1dir) $(datadir)/$(APP) |
75 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
76 |
|
|
77 |
|
uninstall: |
78 |
< |
rm -f $(bindir)/$(APP) |
79 |
< |
rm -f $(man1dir)/$(APP).1 |
80 |
< |
rm -f $(datadir)/$(APP)/keycodes |
81 |
< |
rm -f $(datadir)/$(APP)/fbdevices |
82 |
< |
rmdir $(datadir)/$(APP) |
78 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
79 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
80 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
81 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices |
82 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
83 |
|
|
84 |
|
mostlyclean: |
85 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |