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 |
> |
chmod 755 $(DESTDIR)$(datadir)/$(APP)/tunconfig |
86 |
|
|
87 |
|
installdirs: |
88 |
< |
$(SHELL) mkinstalldirs $(bindir) $(man1dir) |
88 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
89 |
|
|
90 |
|
uninstall: |
91 |
< |
rm -f $(bindir)/$(APP) |
92 |
< |
rm -f $(man1dir)/$(APP).1 |
91 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
92 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
93 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
94 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig |
95 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
96 |
|
|
97 |
|
clean: |
98 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp |