Commit graph

36 commits

Author SHA1 Message Date
Jonathan Ben-Avraham
8701303e7f Added clean-util, install-util and uninstall-util
Added more top-level Makefile targets for convenience and to make the
new users more aware of these targets.
2020-11-13 13:02:23 +02:00
Jonathan Ben-Avraham
934341104b Added Makefile ergonomic features
These features are added in order to:

 1. Warn the user when root privileges are necessary
 2. Warn the user when root UID is probably not intended
 3. Bring the non-default 'example' target to the user's attention
    more clearly
 4. Build and install the util applications whenever the example app is
    built or installed, because the most likely use of the example app
    is to run the tests, which require the util applications
 5. Provide a new target 'util' for building the util applications
 6. Provide a new target 'install-example' for installing the example
    app
 7. Provide a new target 'mrproper' to uninstall and clean everything,
    in order to avoid missing files that need to be removed before
    regression testing, but might be forgotten, for example, the yang
    specs
2020-11-12 18:41:55 +02:00
Olof hagsand
ac1f36009f Makefile copyright 2020-05-12 13:59:45 +02:00
Dave Cornejo
8e01d7c308 Install include files within include target 2020-04-03 21:30:34 -10:00
Olof Hagsand
d7bb96b9cf FreeBSD modifications: Configure, makefiles and test scripts modification for Freebsd 2019-10-20 09:03:31 -10:00
Olof hagsand
98a5ebc76e * Structural change: removed datastore plugin and directory, and merged into regulat clixon lib code.
* Moved out code from clixon_options.[ch] into a new file: clixon_data.[ch]
2019-03-31 18:17:40 +02:00
Olof hagsand
434f0b930e Made Makefile concurrent so that it can be compiled with -jN 2019-03-21 10:40:00 +01:00
Olof Hagsand
d64d433468 * Changed base OS in clixon-system container to Alpine
* Moved datastore/text/ code to datastore/ since there is only one type of datastore.
* Added "magic script line" to test script for sourced and scriped exits
2019-02-16 17:45:39 +01:00
Olof Hagsand
b023c6cbed Travis container tests 2019-02-11 16:10:43 +01:00
Olof Hagsand
dc173e0b4c docker base and system images, and trigger docker test from travis. 2019-02-11 15:47:12 +01:00
Olof hagsand
89059b0000 travis no example 2019-02-04 15:09:37 +01:00
Olof hagsand
27e6511f35 travis build example 2019-02-04 14:59:07 +01:00
Olof hagsand
10d841f4be Added make test and travis experiment 2019-02-04 14:13:20 +01:00
Olof hagsand
0103d58994 2019 2019-01-02 15:48:30 +01:00
Olof Hagsand
f1d56d05ec echo problem 2018-11-04 21:12:45 +00:00
Olof Hagsand
a097f87f21 @echo problem 2018-11-04 21:11:35 +00:00
Olof hagsand
366cf041bd YANG keywords "action" and "belongs-to" implemented by syntactically by parser (but not proper semantics). 2018-11-04 18:36:55 +01:00
Olof hagsand
9776ee864f * Makefile change: Removed the make include file: clixon.mk and clixon.mk.in
* These generated the Makefile variables: clixon_DBSPECDIR, clixon_SYSCONFDIR, clixon_LOCALSTATEDIR, clixon_LIBDIR, clixon_DATADIR which have been replaced by generic autoconf variables instead.
2018-07-22 18:33:13 +02:00
Olof hagsand
c71791f168 Added util directory containing test applications 2018-07-19 09:57:38 +02:00
Olof hagsand
7532fdde77 * INSTALLFLAGS added with default value -s(strip).
* For debug do: CFLAGS=-g INSTALLFLAGS= ./configure
2018-04-30 12:06:19 +02:00
Renato Botelho do Couto
dabf0e5918 Improve permissions and strip binaries
- Use 0755 for directories
- Use 0644 for libraries, includes and shared files
- Use -s (strip) parameter when installing binaries and libraries
2018-04-23 13:33:21 -05:00
Olof hagsand
3758c8dab4 * The following backward compatible options to configure have been obsoleted. If you havent already migrated this code you must do this now.
* Backend startup modes prior to 3.3.3. As enabled with `configure --with-startup-compat`. Configure option CLICON_USE_STARTUP_CONFIG is also obsoleted.
  * Configuration files (non-XML) prior to 3.3.3. As enabled with `configure --with-config-compat`. The template clicon.conf.cpp files are also removed.
  * Clixon XML C-lib prior to 3.4.0. As enabled with `configure --with-xml-compat`
2018-01-01 14:48:57 +01:00
Olof hagsand
38f0b446fa 2017->2018 2018-01-01 12:25:33 +01:00
Renato Botelho do Couto
1c187c5729 Prepare build system to produce RPMs
Add .spec file under extras/rpms and create targets to produce
source and binary rpms
2017-12-05 07:27:59 -06:00
Renato Botelho do Couto
e7b1c0c38c Implement make dist target
Add dist target to create project tarball. It uses a script called
version, that was obtained from vpp source code to produce a version
string using `git describe` that is incremental based on last annotated
tag available.
2017-12-05 05:23:27 -06:00
Olof hagsand
96a7ec86f0 Fixed DESTDIR make install/uninstall and break immediately on errors 2017-11-22 22:21:12 +01:00
Olof hagsand
496754f5c5 undefined DESTDIR 2017-11-20 23:01:49 +01:00
Olof hagsand
e45e8da6d7 Added experimental reading of yang and xml-based config file. 2017-09-24 22:01:28 +02:00
Olof hagsand
4169bd8d30 Ongoing: xmldb datastore plugin framework 2017-04-08 20:39:04 +02:00
Olof hagsand
bc2b606167 dual license 2016-12-30 16:14:48 +01:00
Olof Hagsand
caccfe8f2d distclean 2016-02-28 16:46:49 +01:00
Olof Hagsand
79b77943f9 renamed .h and libs clicon->clixon 2016-02-28 15:27:36 +01:00
Olof Hagsand
eb93d82caa docker support 2016-02-26 19:47:30 +01:00
Olof hagsand
5a45eca301 file rearrangement 2016-02-26 16:05:34 +01:00
Olof hagsand
9bd941ab76 commit xpath 2016-02-24 21:16:15 +01:00
Olof hagsand
d6e393ea58 Inital commit 2016-02-22 22:17:30 +01:00