11 |
|
mandir = @mandir@ |
12 |
|
man1dir = $(mandir)/man1 |
13 |
|
|
14 |
+ |
DESTDIR = |
15 |
+ |
|
16 |
|
CC = @CC@ |
17 |
|
CXX = @CXX@ |
18 |
|
CFLAGS = @CFLAGS@ |
78 |
|
cd NetDriver; make |
79 |
|
|
80 |
|
install: $(APP) installdirs |
81 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
82 |
< |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
81 |
> |
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP) |
82 |
> |
-$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1 |
83 |
> |
$(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes |
84 |
> |
$(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig |
85 |
|
|
86 |
|
installdirs: |
87 |
< |
$(SHELL) mkinstalldirs $(bindir) $(man1dir) |
87 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
88 |
|
|
89 |
|
uninstall: |
90 |
< |
rm -f $(bindir)/$(APP) |
91 |
< |
rm -f $(man1dir)/$(APP).1 |
90 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
91 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
92 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
93 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig |
94 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
95 |
|
|
96 |
|
clean: |
97 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp |