Fixed DESTDIR make install/uninstall and break immediately on errors
This commit is contained in:
parent
496754f5c5
commit
96a7ec86f0
16 changed files with 115 additions and 39 deletions
|
|
@ -61,15 +61,15 @@ $(SUBDIRS):
|
|||
|
||||
install-include:
|
||||
for i in $(SUBDIRS); \
|
||||
do (cd $$i ; $(MAKE) $(MFLAGS) $@); done;
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@||exit 1); done;
|
||||
|
||||
install:
|
||||
for i in $(SUBDIRS); \
|
||||
do (cd $$i; $(MAKE) $(MFLAGS) $@); done
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done
|
||||
|
||||
uninstall:
|
||||
for i in $(SUBDIRS); \
|
||||
do (cd $$i; $(MAKE) $(MFLAGS) $@); done
|
||||
do (cd $$i; $(MAKE) $(MFLAGS) $@)||exit 1; done
|
||||
|
||||
clean:
|
||||
for i in $(SUBDIRS); \
|
||||
|
|
|
|||
|
|
@ -107,9 +107,9 @@ install-lib: $(MYLIB)
|
|||
install -d $(DESTDIR)$(libdir)/clixon/plugins/backend
|
||||
|
||||
uninstall:
|
||||
rm -f $(sbindir)/$(APPL)
|
||||
rm -f $(libdir)/$(MYLIB)
|
||||
rm -f $(includedir)/clixon/*
|
||||
rm -f $(DESTDIR)$(sbindir)/$(APPL)
|
||||
rm -f $(DESTDIR)$(libdir)/$(MYLIBLINK)*
|
||||
rm -f $(DESTDIR)$(includedir)/clixon/*
|
||||
|
||||
install-include: clixon_backend.h clixon_backend_handle.h clixon_backend_transaction.h
|
||||
install -d $(DESTDIR)$(includedir)/clixon
|
||||
|
|
|
|||
|
|
@ -824,7 +824,7 @@ main(int argc, char **argv)
|
|||
if (yang_spec_main(h, stdout, printspec) < 0)
|
||||
goto done;
|
||||
|
||||
/* Set options: database dir aqnd yangspec (could be hidden in connect?)*/
|
||||
/* Set options: database dir and yangspec (could be hidden in connect?)*/
|
||||
if (xmldb_setopt(h, "dbdir", clicon_xmldb_dir(h)) < 0)
|
||||
goto done;
|
||||
if (xmldb_setopt(h, "yangspec", clicon_dbspec_yang(h)) < 0)
|
||||
|
|
|
|||
|
|
@ -108,9 +108,9 @@ install-include: clixon_cli.h clixon_cli_api.h
|
|||
install -m 644 $^ $(DESTDIR)$(includedir)/clixon
|
||||
|
||||
uninstall:
|
||||
rm -f $(bindir)/$(APPL)
|
||||
rm -f $(libdir)/$(MYLIB)
|
||||
rm -f $(includedir)/clixon/*
|
||||
rm -f $(DESTDIR)$(bindir)/$(APPL)
|
||||
rm -f $(DESTDIR)$(libdir)/$(MYLIBLINK)*
|
||||
rm -f $(DESTDIR)$(includedir)/clixon/*
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
|
|
|
|||
|
|
@ -103,9 +103,9 @@ install-include: clixon_netconf.h
|
|||
install -m 644 $^ $(DESTDIR)$(includedir)/clixon
|
||||
|
||||
uninstall:
|
||||
rm -f $(bindir)/$(APPL)
|
||||
rm -f $(libdir)/$(MYLIB)
|
||||
rm -f $(includedir)/clixon/*
|
||||
rm -f $(DESTDIR)$(bindir)/$(APPL)
|
||||
rm -f $(DESTDIR)$(libdir)/$(MYLIBLINK)*
|
||||
rm -f $(DESTDIR)$(includedir)/clixon/*
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ install: $(APPL)
|
|||
install-include:
|
||||
|
||||
uninstall:
|
||||
rm -f $(wwwdir)/$(APPL)
|
||||
rm -f $(DESTDIR)$(wwwdir)/$(APPL)
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue